Package org.rcsb.cif.binary.data
Interface IntArray
- All Superinterfaces:
EncodedData<int[]>,NumberArray<int[]>
- All Known Subinterfaces:
SignedIntArray<T>,UnsignedIntArray
- All Known Implementing Classes:
Int16Array,Int32Array,Int8Array,Uint16Array,Uint32Array,Uint8Array
public interface IntArray extends NumberArray<int[]>
An array of integer numbers.
-
Method Summary
Modifier and Type Method Description static IntArraycreate(int type, int size)default Int32Arraydecode(IntegerPackingEncoding encoding)default Int32Arrayencode(RunLengthEncoding encoding)int[]getData()Access to the underlying array of information.booleanisSigned()default intlength()The number of elements in the wrapped array.Methods inherited from interface org.rcsb.cif.binary.data.EncodedData
decode, getEncoding, hasNextDecodingStep, setEncodingMethods inherited from interface org.rcsb.cif.binary.data.NumberArray
encode, getNumberOfBytes, getType, toByteArray
-
Method Details
-
getData
int[] getData()Description copied from interface:EncodedDataAccess to the underlying array of information.- Specified by:
getDatain interfaceEncodedData<int[]>- Returns:
- an int[], double[], byte[], or String[]
-
length
default int length()Description copied from interface:EncodedDataThe number of elements in the wrapped array.- Specified by:
lengthin interfaceEncodedData<int[]>- Returns:
- results of array.length
-
isSigned
boolean isSigned() -
encode
-
decode
-
create
-