Class DbIntArrayDirect
java.lang.Object
com.illumon.iris.db.tables.dbarrays.DbIntArrayDirect
- All Implemented Interfaces:
DbArrayBase,DbIntArray,LongSizedDataStructure,ToStringWithElements,Serializable
public class DbIntArrayDirect extends Object implements DbIntArray
- See Also:
- Serialized Form
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.illumon.iris.db.tables.dbarrays.DbIntArray
DbIntArray.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 DbIntArrayDirect(int... data) -
Method Summary
Modifier and Type Method Description booleanequals(Object obj)intget(long i)DbIntArrayDirectgetDirect()Return a version of this DbArrayBase that is flattened out to only reference memory.intgetPrev(long offset)inthashCode()longsize()The size of this data structure.DbIntArraysubArray(long fromIndex, long toIndex)DbIntArraysubArrayByPositions(long[] positions)int[]toArray()DbArray<Integer>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.DbIntArray
fillChunk, getComponentType, toChunk
-
Constructor Details
-
DbIntArrayDirect
public DbIntArrayDirect(int... data)
-
-
Method Details
-
get
public int get(long i)- Specified by:
getin interfaceDbIntArray
-
getPrev
public int getPrev(long offset)- Specified by:
getPrevin interfaceDbIntArray
-
subArray
- Specified by:
subArrayin interfaceDbArrayBase- Specified by:
subArrayin interfaceDbIntArray
-
subArrayByPositions
- Specified by:
subArrayByPositionsin interfaceDbArrayBase- Specified by:
subArrayByPositionsin interfaceDbIntArray
-
toArray
public int[] toArray()- Specified by:
toArrayin interfaceDbArrayBase- Specified by:
toArrayin interfaceDbIntArray
-
size
public long size()Description copied from interface:LongSizedDataStructureThe size of this data structure.- Specified by:
sizein interfaceDbIntArray- Specified by:
sizein interfaceLongSizedDataStructure- Returns:
- The size
-
toDbArray
- Specified by:
toDbArrayin interfaceDbArrayBase- Specified by:
toDbArrayin interfaceDbIntArray
-
getDirect
Description copied from interface:DbIntArrayReturn a version of this DbArrayBase that is flattened out to only reference memory.- Specified by:
getDirectin interfaceDbArrayBase- Specified by:
getDirectin interfaceDbIntArray
-
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()
-