A
- the Iterable
element typepublic final class ToArray<A> extends Object implements Fn2<Class<A[]>,Iterable<? extends A>,A[]>
Iterable
directly into an array of the specified type. If the Iterable
is an instance of Collection
, use Collection.toArray(Object[])
.Modifier and Type | Method and Description |
---|---|
A[] |
checkedApply(Class<A[]> arrayType,
Iterable<? extends A> as) |
static <A> ToArray<A> |
toArray() |
static <A> Fn1<Iterable<? extends A>,A[]> |
toArray(Class<A[]> arrayType) |
static <A> A[] |
toArray(Class<A[]> arrayType,
Iterable<? extends A> as) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
apply, apply, checkedApply, compose, contraMap, curried, curry, diMapL, discardR, flip, fn2, fromBiFunction, toBiFunction, uncurry, widen