Package org.jivesoftware.openfire.group
Class GroupCollection
- All Implemented Interfaces:
Iterable<Group>,Collection<Group>
Provides a view of an array of group names as a Collection of Group objects. If
any of the group names cannot be loaded, they are transparently skipped when
iterating over the collection.
- Author:
- Matt Tucker
-
Constructor Summary
ConstructorsConstructorDescriptionGroupCollection(String[] elements) Constructs a new GroupCollection.GroupCollection(Collection<String> collection) Constructs a new GroupCollection. -
Method Summary
Methods inherited from class java.util.AbstractCollection
add, addAll, clear, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
equals, hashCode, parallelStream, removeIf, spliterator, stream, toArray
-
Constructor Details
-
GroupCollection
Constructs a new GroupCollection.- Parameters:
collection- the initial groups in the collection
-
GroupCollection
Constructs a new GroupCollection.- Parameters:
elements- the initial groups in the collection
-
-
Method Details
-
iterator
- Specified by:
iteratorin interfaceCollection<Group>- Specified by:
iteratorin interfaceIterable<Group>- Specified by:
iteratorin classAbstractCollection<Group>
-
size
public int size()- Specified by:
sizein interfaceCollection<Group>- Specified by:
sizein classAbstractCollection<Group>
-