public class LongArrayType extends IntegralArrayType<long[],Long>
long[]
primitive array type. Does not support null arrays.ARRAY_SUFFIX, MAX_DIMENSIONS
name, NAME_PATTERN, REFERENCE_TYPE_NAME, signature, typeToken
Constructor and Description |
---|
LongArrayType() |
Modifier and Type | Method and Description |
---|---|
protected long[] |
createArray(List<Long> elements)
Create a new array instance containing the given elements.
|
protected long[] |
decode(DataInputStream input,
int numBytes) |
protected void |
encode(long[] array,
DataOutputStream output) |
protected Long |
getArrayElement(long[] array,
int index)
Get an element from the given array.
|
protected int |
getArrayLength(long[] array)
Get the length of the given array.
|
hasPrefix0xff, read, skip, write
checkDecodeLength, fromParseableString, fromString, toParseableString, toParseableString, toString, toString
compare, convert, equals, getDimensions, hashCode
validate
genericizeForIndex, getDefaultValue, getDefaultValueObject, getEncodingSignature, getKeyRange, getName, getTypeToken, hasPrefix0x00, toString, validateAndWrite
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
comparing, comparing, comparingDouble, comparingInt, comparingLong, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
protected int getArrayLength(long[] array)
ArrayType
getArrayLength
in class ArrayType<long[],Long>
array
- non-null arrayprotected Long getArrayElement(long[] array, int index)
ArrayType
getArrayElement
in class ArrayType<long[],Long>
array
- non-null arrayindex
- index of target element in array
index
protected long[] createArray(List<Long> elements)
ArrayType
createArray
in class ArrayType<long[],Long>
elements
- content for the new arrayprotected void encode(long[] array, DataOutputStream output) throws IOException
encode
in class Base64ArrayType<long[],Long>
IOException
protected long[] decode(DataInputStream input, int numBytes) throws IOException
decode
in class Base64ArrayType<long[],Long>
IOException
Copyright © 2022. All rights reserved.