public class CollectionUtils
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static AttributeMap |
EMPTY_ATTRIBUTE_MAP
The shared, singleton empty attribute map instance.
|
static java.util.Iterator |
EMPTY_ITERATOR
The shared, singleton empty iterator instance.
|
| Modifier and Type | Method and Description |
|---|---|
static boolean |
addAllNoDuplicates(java.util.List target,
java.lang.Object[] objects)
Add all given objects to given target list.
|
static AttributeMap |
singleEntryMap(java.lang.String attributeName,
java.lang.Object attributeValue)
Factory method that returns a unmodifiable attribute map with a single entry.
|
static java.util.Iterator |
toIterator(java.util.Enumeration enumeration)
Factory method that adapts an enumeration to an iterator.
|
public static final java.util.Iterator EMPTY_ITERATOR
public static final AttributeMap EMPTY_ATTRIBUTE_MAP
public static java.util.Iterator toIterator(java.util.Enumeration enumeration)
enumeration - the enumerationpublic static AttributeMap singleEntryMap(java.lang.String attributeName, java.lang.Object attributeValue)
attributeName - the attribute nameattributeValue - the attribute valuepublic static boolean addAllNoDuplicates(java.util.List target,
java.lang.Object[] objects)
target - the collection to which to objects will be addedobjects - the objects to add