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