Package org.jivesoftware.openfire.user
Class UserCollection
- All Implemented Interfaces:
Iterable<User>,Collection<User>
Provides a view of an array of usernames as a Collection of User objects. If
any of the usernames cannot be loaded, they are transparently skipped when
iterating over the collection.
- Author:
- Matt Tucker
-
Constructor Summary
Constructors -
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
-
UserCollection
Constructs a new UserCollection.- Parameters:
elements- the initial set of users
-
-
Method Details
-
iterator
- Specified by:
iteratorin interfaceCollection<User>- Specified by:
iteratorin interfaceIterable<User>- Specified by:
iteratorin classAbstractCollection<User>
-
size
public int size()- Specified by:
sizein interfaceCollection<User>- Specified by:
sizein classAbstractCollection<User>
-