public class DataBlockLong extends AbstractDataBlock
Carries an array of long primitives. All data is casted to other types when requested.
Modifier and Type | Field and Description |
---|---|
protected long[] |
primitiveArray |
atomCount, startIndex
Constructor and Description |
---|
DataBlockLong() |
DataBlockLong(int size) |
Modifier and Type | Method and Description |
---|---|
DataBlockLong |
clone()
Full copy of datablock structure and values
A new underlying object is created with the same values
|
DataBlockLong |
copy()
Shallow copy of datablock structure
The underlying object is shared
|
boolean |
getBooleanValue() |
boolean |
getBooleanValue(int index) |
byte |
getByteValue() |
byte |
getByteValue(int index) |
DataType |
getDataType() |
DataType |
getDataType(int index) |
double |
getDoubleValue() |
double |
getDoubleValue(int index) |
float |
getFloatValue() |
float |
getFloatValue(int index) |
int |
getIntValue() |
int |
getIntValue(int index) |
long |
getLongValue() |
long |
getLongValue(int index) |
short |
getShortValue() |
short |
getShortValue(int index) |
String |
getStringValue() |
String |
getStringValue(int index) |
long[] |
getUnderlyingObject()
Allow direct access to underlying object carrying
the data (usually a primitive array or composite)
|
DataBlockLong |
renew()
Regenerate an identical datablock of same
size with a new underlying object
|
void |
resize(int size) |
void |
setBooleanValue(boolean value) |
void |
setBooleanValue(int index,
boolean value) |
void |
setByteValue(byte value) |
void |
setByteValue(int index,
byte value) |
void |
setDoubleValue(double value) |
void |
setDoubleValue(int index,
double value) |
void |
setFloatValue(float value) |
void |
setFloatValue(int index,
float value) |
void |
setIntValue(int value) |
void |
setIntValue(int index,
int value) |
void |
setLongValue(int index,
long value) |
void |
setLongValue(long value) |
void |
setShortValue(int index,
short value) |
void |
setShortValue(short value) |
void |
setStringValue(int index,
String value) |
void |
setStringValue(String value) |
void |
setUnderlyingObject(long[] primitiveArray) |
void |
setUnderlyingObject(Object obj)
Allows to set the underlying object directly
|
getAtomCount, toString
public DataBlockLong()
public DataBlockLong(int size)
public DataBlockLong copy()
AbstractDataBlock
copy
in interface DataBlock
copy
in class AbstractDataBlock
public DataBlockLong renew()
AbstractDataBlock
renew
in interface DataBlock
renew
in class AbstractDataBlock
public DataBlockLong clone()
AbstractDataBlock
clone
in interface DataBlock
clone
in class AbstractDataBlock
public long[] getUnderlyingObject()
AbstractDataBlock
getUnderlyingObject
in interface DataBlock
getUnderlyingObject
in class AbstractDataBlock
public void setUnderlyingObject(long[] primitiveArray)
public void setUnderlyingObject(Object obj)
AbstractDataBlock
setUnderlyingObject
in interface DataBlock
setUnderlyingObject
in class AbstractDataBlock
public DataType getDataType()
public DataType getDataType(int index)
public void resize(int size)
public boolean getBooleanValue(int index)
public byte getByteValue(int index)
public short getShortValue(int index)
public int getIntValue(int index)
public long getLongValue(int index)
public float getFloatValue(int index)
public double getDoubleValue(int index)
public String getStringValue(int index)
public boolean getBooleanValue()
public byte getByteValue()
public short getShortValue()
public int getIntValue()
public long getLongValue()
public float getFloatValue()
public double getDoubleValue()
public String getStringValue()
public void setBooleanValue(int index, boolean value)
public void setByteValue(int index, byte value)
public void setShortValue(int index, short value)
public void setIntValue(int index, int value)
public void setLongValue(int index, long value)
public void setFloatValue(int index, float value)
public void setDoubleValue(int index, double value)
public void setStringValue(int index, String value)
public void setBooleanValue(boolean value)
public void setByteValue(byte value)
public void setShortValue(short value)
public void setIntValue(int value)
public void setLongValue(long value)
public void setFloatValue(float value)
public void setDoubleValue(double value)
public void setStringValue(String value)
Copyright © 2016 Sensia Software LLC. All rights reserved.