public final class CollectionUtility extends Object
| Modifier and Type | Method and Description |
|---|---|
static <E> List<E> |
toArrayList(Iterator<? extends E> anIterator)
Creates a new list and copies the content of the iterator into the list.
|
static int |
toMaxLength(Collection<?>... aCollections)
Returns the max size of the collections passed to this method.
|
static <T> int |
toMaxLength(T[]... aObjects)
Returns the max length of the arrays passed to this method.
|
public static <E> List<E> toArrayList(Iterator<? extends E> anIterator)
anIterator - Description of the Parameter@SafeVarargs public static <T> int toMaxLength(T[]... aObjects)
aObjects - The arrays of which the length of the one with the most
elements is returned.public static int toMaxLength(Collection<?>... aCollections)
aCollections - The collections of which the size of the one with the
most elements is returned.Copyright © 2017. All rights reserved.