public final class CollectionUtils
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static <ELEMENT_TYPE> |
addFromEnumerationToCollection(java.util.Collection<ELEMENT_TYPE> collection,
java.util.Enumeration<ELEMENT_TYPE> enumeration) |
static <ELEMENT_TYPE> |
createHashSet(java.lang.Iterable<? extends ELEMENT_TYPE> iterable) |
static <ELEMENT_TYPE> |
createList(java.lang.Iterable<? extends ELEMENT_TYPE> iterable) |
static boolean |
elementsEqual(java.util.Collection<?> collection1,
java.util.Collection<?> collection2)
Tests if two collections have the same elements without considering the order
|
static <ELEMENT_TYPE> |
enumerationFromCollection(java.util.Collection<ELEMENT_TYPE> collection) |
static <ELEMENT_TYPE> |
enumerationFromIterator(java.util.Iterator<ELEMENT_TYPE> iterator) |
static <ELEMENT_TYPE> |
toCollection(IUnmodifiableArray<ELEMENT_TYPE> collection) |
static <ELEMENT_TYPE> |
unmodifiableArrayList(java.util.ArrayList<ELEMENT_TYPE> original) |
static <ELEMENT_TYPE> |
unmodifiableEmptyIterator() |
static <ELEMENT_TYPE> |
unmodifiableIterator(java.util.Iterator<ELEMENT_TYPE> original) |
static <ELEMENT_TYPE> |
unmodifiableListIterator(java.util.ListIterator<ELEMENT_TYPE> original) |
public static boolean elementsEqual(java.util.Collection<?> collection1, java.util.Collection<?> collection2)
collection1
- collection2
- public static <ELEMENT_TYPE> java.util.HashSet<ELEMENT_TYPE> createHashSet(java.lang.Iterable<? extends ELEMENT_TYPE> iterable)
public static <ELEMENT_TYPE> java.util.List<ELEMENT_TYPE> createList(java.lang.Iterable<? extends ELEMENT_TYPE> iterable)
public static <ELEMENT_TYPE> java.util.Iterator<ELEMENT_TYPE> unmodifiableIterator(java.util.Iterator<ELEMENT_TYPE> original)
public static <ELEMENT_TYPE> java.util.Iterator<ELEMENT_TYPE> unmodifiableEmptyIterator()
public static <ELEMENT_TYPE> java.util.ListIterator<ELEMENT_TYPE> unmodifiableListIterator(java.util.ListIterator<ELEMENT_TYPE> original)
public static <ELEMENT_TYPE> java.util.Collection<ELEMENT_TYPE> toCollection(IUnmodifiableArray<ELEMENT_TYPE> collection)
public static <ELEMENT_TYPE> java.util.Enumeration<ELEMENT_TYPE> enumerationFromCollection(java.util.Collection<ELEMENT_TYPE> collection)
public static <ELEMENT_TYPE> java.util.Enumeration<ELEMENT_TYPE> enumerationFromIterator(java.util.Iterator<ELEMENT_TYPE> iterator)
public static <ELEMENT_TYPE> void addFromEnumerationToCollection(java.util.Collection<ELEMENT_TYPE> collection, java.util.Enumeration<ELEMENT_TYPE> enumeration)
public static <ELEMENT_TYPE> java.util.ArrayList<ELEMENT_TYPE> unmodifiableArrayList(java.util.ArrayList<ELEMENT_TYPE> original)
Siehe auch Jowidgets Nutzerhandbuch