public class Collections extends Object
Modifier and Type | Method and Description |
---|---|
static <T> Iterable<T> |
concat(Iterable<T> a,
Iterable<T> b)
Concatenate two Iterable sources
|
static <T> Iterator<T> |
concat(Iterator<T> a,
Iterator<T> b)
Concatenate two Iterators
|
static <T> Set<T> |
unmodifiableSet(Collection<T> values) |
static <T> Set<T> |
unmodifiableSet(Set<T> values) |
static <T> Set<T> |
unmodifiableSet(T... values) |
@SafeVarargs public static <T> Set<T> unmodifiableSet(T... values)
public static <T> Set<T> unmodifiableSet(Collection<T> values)
public static <T> Iterable<T> concat(Iterable<T> a, Iterable<T> b)
T
- the value typea
- a non-null Iterable valueb
- a non-null Iterable valueCopyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.