public abstract class Arrays extends Object
Modifier and Type | Method and Description |
---|---|
static <A> A[] |
append(A[] part1,
A[]... parts) |
static <A> A[] |
append(Class<A> range,
A[]... parts) |
protected static <A> void |
doFlatten(List<A> list,
Object datum,
Class<A> cls) |
static <A> A[] |
filter(Predicate<? super A> pred,
Class<A> range,
A... things) |
static <A> A[] |
flatten(Object[] data,
Class<A> cls) |
static <A> A[] |
flatten(Object[] data,
Class<A> cls,
int estimatedSize)
Makes a one-level array of non-array objects.
|
static <A,B> B[] |
map(Function<? super A,? extends B> fun,
Class<B> range,
A[] things) |
static <A,B> B[] |
map(Function<? super A,? extends B> fun,
Class<B> range,
Collection<? extends A> things) |
public static <A> A[] flatten(Object[] data, Class<A> cls, int estimatedSize)
public static <A,B> B[] map(Function<? super A,? extends B> fun, Class<B> range, Collection<? extends A> things)
public static <A> A[] append(Class<A> range, A[]... parts)
public static <A> A[] append(A[] part1, A[]... parts)
see also the complete user documentation .