public class Collections extends Object
Constructor and Description |
---|
Collections() |
Modifier and Type | Method and Description |
---|---|
static <T> List<T> |
concat(Collection<T>... lists)
Copies all entries of the parsed collections to an new list
|
static <T> Iterator<T> |
iterator(Collection<T>... lists)
Returns an iterable over all lists without copying any data
|
static <T> Iterator<T> |
iterator(int offset,
Collection<T>... lists)
Returns an iterable over all lists starting by the parsed offset.
|
@SafeVarargs public static <T> List<T> concat(Collection<T>... lists)
lists
- @SafeVarargs public static <T> Iterator<T> iterator(Collection<T>... lists)
lists
- the array with the lists@SafeVarargs public static <T> Iterator<T> iterator(int offset, Collection<T>... lists)
offset
- the offset of the first entry those elements should be
included in the returned entrieslists
- the array with the lists of elementsCopyright © 2012–2018 The Apache Software Foundation. All rights reserved.