|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectde.unidu.is.util.CollectionUtilities
This class provides some convenient methods for dealing with collections.
| Constructor Summary | |
CollectionUtilities()
|
|
| Method Summary | |
static void |
addAll(java.util.Collection collection,
java.util.Iterator iterator)
Adds all elements returned by the specified iterator to the specified collection. |
static java.util.List |
toList(java.util.Iterator iterator)
Creates an empty list and adds all elements returned by the specified iterator to this list. |
static java.util.Set |
toSet(java.util.Iterator iterator)
Creates an empty set and adds all elements returned by the specified iterator to this set. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public CollectionUtilities()
| Method Detail |
public static void addAll(java.util.Collection collection,
java.util.Iterator iterator)
collection - collection to which objects are addediterator - iterator returning objects which have to be added to
the collectionpublic static java.util.Set toSet(java.util.Iterator iterator)
iterator - returning objects which have to be added to
the set
public static java.util.List toList(java.util.Iterator iterator)
iterator - returning objects which have to be added to
the list
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||