Interface ArrayType<T>
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
ArrayType.BooleanArrayType, ArrayType.ByteArrayType, ArrayType.CharArrayType, ArrayType.DoubleArrayType, ArrayType.FloatArrayType, ArrayType.IntArrayType, ArrayType.LongArrayType, ArrayType.ObjectArrayType, ArrayType.ShortArrayType
Helper to replace reflective array access.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classstatic final classstatic final classstatic final classstatic final classstatic final classstatic final classstatic final classstatic final class -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic Object[]Store the content of an iterable in an arraydefault ObjectCreate a single element arraystatic <T> TasPrimitives(Class<?> primitiveClass, Iterable<?> values) default Objectdefault Objectclone the source and keep everything after the index (pre-padding the values with null)default ObjectSystem.arrayCopy with same source and destinationdefault Objectclone the source and keep everything before and including the indexdefault ObjectcopyUpdate(Object array, int index, T element) clone the source and set the value at the given positionempty()default ObjectRepeatedly group an array into equal sized sub-treesintdefault ObjectnewInstance(int length) static <T> ArrayType<T> obj()static <T> ArrayType<T> static <T> ArrayType<T> static <T> ArrayType<T> ofPrimitive(Class<T> type) voidtype()
-
Field Details
-
serialVersionUID
static final long serialVersionUID- See Also:
-
-
Method Details
-
obj
-
type
-
lengthOf
-
getAt
-
empty
Object empty() -
setAt
- Throws:
ClassCastException
-
copy
-
of
-
of
-
ofPrimitive
-
newInstance
-
copyRange
-
grouped
-
copyUpdate
-
copy
-
copyDrop
-
copyTake
-
asArray
-
asArray
-
asPrimitives
-