|
Spring Web Flow | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.webflow.core.collection.CollectionUtils
public class CollectionUtils
A utility class for working with attribute and parameter collections used by Spring Web FLow.
Field Summary | |
---|---|
static AttributeMap<java.lang.Object> |
EMPTY_ATTRIBUTE_MAP
The shared, singleton empty attribute map instance. |
static java.util.Iterator |
EMPTY_ITERATOR
The shared, singleton empty iterator instance. |
Method Summary | ||
---|---|---|
static
|
addAllNoDuplicates(java.util.List<T> target,
T... objects)
Add all given objects to given target list. |
|
static
|
emptyIterator()
|
|
static
|
singleEntryMap(java.lang.String attributeName,
V attributeValue)
Factory method that returns a unmodifiable attribute map with a single entry. |
|
static
|
toIterator(java.util.Enumeration<E> enumeration)
Factory method that adapts an enumeration to an iterator. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.util.Iterator EMPTY_ITERATOR
public static final AttributeMap<java.lang.Object> EMPTY_ATTRIBUTE_MAP
Method Detail |
---|
public static <E> java.util.Iterator<E> emptyIterator()
public static <E> java.util.Iterator<E> toIterator(java.util.Enumeration<E> enumeration)
enumeration
- the enumeration
public static <V> AttributeMap<V> singleEntryMap(java.lang.String attributeName, V attributeValue)
attributeName
- the attribute nameattributeValue
- the attribute value
public static <T> boolean addAllNoDuplicates(java.util.List<T> target, T... objects)
target
- the collection to which to objects will be addedobjects
- the objects to add
|
Spring Web Flow | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |