Package io.deephaven.qst.array
Interface PrimitiveArray<T>
- Type Parameters:
T
- the boxed primitive type
- All Superinterfaces:
Array<T>
- All Known Implementing Classes:
BooleanArray
,ByteArray
,CharArray
,DoubleArray
,FloatArray
,IntArray
,LongArray
,PrimitiveArrayBase
,ShortArray
A primitive array-like object.
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> ArrayBuilder<T,
? extends PrimitiveArray<T>, ?> builder
(PrimitiveType<T> type) static <T> ArrayBuilder<T,
? extends PrimitiveArray<T>, ?> builder
(PrimitiveType<T> type, int initialCapacity) static <T> PrimitiveArray<T>
empty
(PrimitiveType<T> type) boolean
isNull
(int index) static <T> PrimitiveArray<T>
of
(PrimitiveType<T> type, Iterable<T> data) static <T> PrimitiveArray<T>
of
(PrimitiveType<T> type, Collection<T> data) static <T> PrimitiveArray<T>
of
(PrimitiveType<T> type, T... data) value
(int index) <R> R
walk
(PrimitiveArray.Visitor<R> visitor)
-
Method Details
-
builder
-
builder
static <T> ArrayBuilder<T,? extends PrimitiveArray<T>, builder?> (PrimitiveType<T> type, int initialCapacity) -
empty
-
of
-
of
-
of
-
value
- Returns:
- the boxed value at
index
-
isNull
boolean isNull(int index) - Returns:
- whether the value at
index
isnull
-
componentType
PrimitiveType<T> componentType()- Specified by:
componentType
in interfaceArray<T>
-
walk
-