Class DbLongArrayDirect
java.lang.Object
com.illumon.iris.db.tables.dbarrays.DbLongArrayDirect
- All Implemented Interfaces:
DbArrayBase,DbLongArray,LongSizedDataStructure,ToStringWithElements,Serializable
public class DbLongArrayDirect extends Object implements DbLongArray
- See Also:
- Serialized Form
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.illumon.iris.db.tables.dbarrays.DbLongArray
DbLongArray.Indirect -
Field Summary
Fields inherited from interface com.illumon.iris.gui.table.format.ToStringWithElements
ARRAY_SIZE_WARNING, DEFAULT_ARRAY_SIZE_COPY, MAX_ARRAY_SIZE_COPY -
Constructor Summary
Constructors Constructor Description DbLongArrayDirect(long... data) -
Method Summary
Modifier and Type Method Description booleanequals(Object obj)longget(long i)DbLongArrayDirectgetDirect()Return a version of this DbArrayBase that is flattened out to only reference memory.longgetPrev(long offset)inthashCode()longsize()The size of this data structure.DbLongArraysubArray(long fromIndex, long toIndex)DbLongArraysubArrayByPositions(long[] positions)long[]toArray()DbArray<Long>toDbArray()StringtoString()StringtoString(long maxElements)Unless explicitly overridden, this method will ignore the parameterMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.illumon.iris.db.tables.dbarrays.DbLongArray
fillChunk, getComponentType, toChunk
-
Constructor Details
-
DbLongArrayDirect
public DbLongArrayDirect(long... data)
-
-
Method Details
-
get
public long get(long i)- Specified by:
getin interfaceDbLongArray
-
getPrev
public long getPrev(long offset)- Specified by:
getPrevin interfaceDbLongArray
-
subArray
- Specified by:
subArrayin interfaceDbArrayBase- Specified by:
subArrayin interfaceDbLongArray
-
subArrayByPositions
- Specified by:
subArrayByPositionsin interfaceDbArrayBase- Specified by:
subArrayByPositionsin interfaceDbLongArray
-
toArray
public long[] toArray()- Specified by:
toArrayin interfaceDbArrayBase- Specified by:
toArrayin interfaceDbLongArray
-
size
public long size()Description copied from interface:LongSizedDataStructureThe size of this data structure.- Specified by:
sizein interfaceDbLongArray- Specified by:
sizein interfaceLongSizedDataStructure- Returns:
- The size
-
toDbArray
- Specified by:
toDbArrayin interfaceDbArrayBase- Specified by:
toDbArrayin interfaceDbLongArray
-
getDirect
Description copied from interface:DbLongArrayReturn a version of this DbArrayBase that is flattened out to only reference memory.- Specified by:
getDirectin interfaceDbArrayBase- Specified by:
getDirectin interfaceDbLongArray
-
toString
-
toString
Description copied from interface:ToStringWithElementsUnless explicitly overridden, this method will ignore the parameter- Specified by:
toStringin interfaceToStringWithElements- Parameters:
maxElements- defines maximum number of elements to include from an array before truncating- Returns:
- a string representation of this object
-
equals
-
hashCode
public final int hashCode()
-