Package io.deephaven.qst.array
Class GenericArray<T>
java.lang.Object
io.deephaven.qst.array.GenericArray<T>
- Type Parameters:
T
- the non-primitive type
An array-like object for non-primitive types.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.deephaven.qst.array.Array
Array.Visitor<R>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> GenericArray.Builder<T>
builder()
static <T> GenericArray.Builder<T>
builder
(GenericType<T> type) final <O> GenericArray<O>
cast
(GenericType<O> type) abstract GenericType<T>
static <T> GenericArray<T>
empty
(GenericType<T> type) final void
final T
get
(int index) iterator()
static <T> GenericArray<T>
of
(GenericType<T> type, Iterable<T> data) static <T> GenericArray<T>
of
(GenericType<T> type, T... data) final int
size()
final Spliterator<T>
values()
final <R> R
walk
(Array.Visitor<R> visitor)
-
Constructor Details
-
GenericArray
public GenericArray()
-
-
Method Details
-
builder
-
builder
-
empty
-
of
-
of
-
componentType
- Specified by:
componentType
in interfaceArray<T>
-
values
-
size
public final int size() -
walk
-
get
-
cast
-
iterator
-
forEach
-
spliterator
- Specified by:
spliterator
in interfaceIterable<T>
-