Openfire 3.9.3 Javadoc

org.jivesoftware.openfire.user
Class UserCollection

java.lang.Object
  extended by java.util.AbstractCollection
      extended by org.jivesoftware.openfire.user.UserCollection
All Implemented Interfaces:
Iterable, Collection

public class UserCollection
extends AbstractCollection

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
UserCollection(String[] elements)
          Constructs a new UserCollection.
 
Method Summary
 Iterator iterator()
           
 int size()
           
 
Methods inherited from class java.util.AbstractCollection
add, addAll, clear, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Collection
equals, hashCode
 

Constructor Detail

UserCollection

public UserCollection(String[] elements)
Constructs a new UserCollection.

Method Detail

iterator

public Iterator iterator()
Specified by:
iterator in interface Iterable
Specified by:
iterator in interface Collection
Specified by:
iterator in class AbstractCollection

size

public int size()
Specified by:
size in interface Collection
Specified by:
size in class AbstractCollection

Openfire 3.9.3 Javadoc

Copyright © 2003-2008 Jive Software.