@Override
    public int size() {
        return elements.length;
    }
Constructs a new GroupCollection.
@param elements the initial groups in the collection
xmppserver/src/main/java/org/jivesoftware/openfire/group/GroupCollection.java