public interface DataBlock
extends java.io.Serializable
Implementations of this class should be able to carry data for any part of the data cluster defined in the DataDefinition part of the SWE Common Data Model. It should provide access to any data atom through primitive specific methods. Data should be casted from one primitive to another when needed and possible. In order to improve performance, no check needs to be enforced on the index argument (i.e 0 < index < blockSize - 1), thus all getXXXValue(int index) and setXXXValue(int index, ...) do not need to guarantee their bahavior when an invalid index is used. IndexOutOfBoundException can be thrown in some cases.
Modifier and Type | Method and Description |
---|---|
DataBlock |
clone() |
DataBlock |
copy() |
int |
getAtomCount() |
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) |
java.lang.String |
getStringValue() |
java.lang.String |
getStringValue(int index) |
java.lang.Object |
getUnderlyingObject() |
DataBlock |
renew() |
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,
java.lang.String value) |
void |
setStringValue(java.lang.String value) |
void |
setUnderlyingObject(java.lang.Object obj) |
DataType getDataType()
DataType getDataType(int index)
int getAtomCount()
boolean getBooleanValue(int index)
byte getByteValue(int index)
short getShortValue(int index)
int getIntValue(int index)
long getLongValue(int index)
float getFloatValue(int index)
double getDoubleValue(int index)
java.lang.String getStringValue(int index)
boolean getBooleanValue()
byte getByteValue()
short getShortValue()
int getIntValue()
long getLongValue()
float getFloatValue()
double getDoubleValue()
java.lang.String getStringValue()
void setBooleanValue(int index, boolean value)
void setByteValue(int index, byte value)
void setShortValue(int index, short value)
void setIntValue(int index, int value)
void setLongValue(int index, long value)
void setFloatValue(int index, float value)
void setDoubleValue(int index, double value)
void setStringValue(int index, java.lang.String value)
void setBooleanValue(boolean value)
void setByteValue(byte value)
void setShortValue(short value)
void setIntValue(int value)
void setLongValue(long value)
void setFloatValue(float value)
void setDoubleValue(double value)
void setStringValue(java.lang.String value)
void resize(int size)
DataBlock copy()
DataBlock clone()
DataBlock renew()
java.lang.Object getUnderlyingObject()
void setUnderlyingObject(java.lang.Object obj)