Class DbArrayDirect<T>
java.lang.Object
com.illumon.iris.db.tables.dbarrays.DbArrayDirect<T>
- All Implemented Interfaces:
DbArray<T>
,DbArrayBase
,LongSizedDataStructure
,ToStringWithElements
,Serializable
public class DbArrayDirect<T> extends Object implements DbArray<T>
- See Also:
- Serialized Form
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.illumon.iris.db.tables.dbarrays.DbArray
DbArray.Indirect<T>
-
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 DbArrayDirect(T... data)
-
Method Summary
Modifier and Type Method Description boolean
equals(Object obj)
T
get(long i)
Class<T>
getComponentType()
DbArrayDirect<T>
getDirect()
Return a version of this DbArrayBase that is flattened out to only reference memory.T
getPrev(long offset)
int
hashCode()
long
size()
The size of this data structure.DbArray<T>
subArray(long fromIndexInclusive, long toIndexExclusive)
DbArray<T>
subArrayByPositions(long[] positions)
T[]
toArray()
DbArray<T>
toDbArray()
String
toString()
String
toString(long maxElements)
Unless explicitly overridden, this method will ignore the parameter
-
Constructor Details
-
Method Details
-
get
-
subArray
- Specified by:
subArray
in interfaceDbArray<T>
- Specified by:
subArray
in interfaceDbArrayBase
-
subArrayByPositions
- Specified by:
subArrayByPositions
in interfaceDbArray<T>
- Specified by:
subArrayByPositions
in interfaceDbArrayBase
-
toArray
- Specified by:
toArray
in interfaceDbArray<T>
- Specified by:
toArray
in interfaceDbArrayBase
-
size
public long size()Description copied from interface:LongSizedDataStructure
The size of this data structure.- Specified by:
size
in interfaceLongSizedDataStructure
- Returns:
- The size
-
getComponentType
- Specified by:
getComponentType
in interfaceDbArray<T>
- Specified by:
getComponentType
in interfaceDbArrayBase
-
getDirect
Description copied from interface:DbArrayBase
Return a version of this DbArrayBase that is flattened out to only reference memory.- Specified by:
getDirect
in interfaceDbArrayBase
-
getPrev
-
toDbArray
- Specified by:
toDbArray
in interfaceDbArrayBase
-
toString
-
toString
Description copied from interface:ToStringWithElements
Unless explicitly overridden, this method will ignore the parameter- Specified by:
toString
in 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()
-