public class ChannelRecord
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected ArrayValue |
_store
internal data storage
|
Constructor and Description |
---|
ChannelRecord(ValueAdaptor adaptor)
Constructor
|
Modifier and Type | Method and Description |
---|---|
byte[] |
byteArray()
Get the data converted to a byte array.
|
byte |
byteValue()
Get the data converted to a scalar byte.
|
byte |
byteValueAt(int index)
Get the value of the array element identified by the index and convert
it to a byte.
|
double[] |
doubleArray()
Get the data converted to a double array.
|
double |
doubleValue()
Get the data converted to a scalar double.
|
double |
doubleValueAt(int index)
Get the value of the array element identified by the index and convert
it to a double.
|
float[] |
floatArray()
Get the data converted to a float array.
|
float |
floatValue()
Get the data converted to a scalar float.
|
float |
floatValueAt(int index)
Get the value of the array element identified by the index and convert
it to a float.
|
int |
getCount()
Get the number of elements in the array value.
|
java.lang.Class<?> |
getType()
Get the native type of the data as a Java class.
|
int[] |
intArray()
Get the data converted to a int array.
|
int |
intValue()
Get the data converted to a scalar int.
|
int |
intValueAt(int index)
Get the value of the array element identified by the index and convert
it to a int.
|
short[] |
shortArray()
Get the data converted to a short array.
|
short |
shortValue()
Get the data converted to a scalar short.
|
short |
shortValueAt(int index)
Get the value of the array element identified by the index and convert
it to a short.
|
java.lang.String[] |
stringArray()
Get the data converted to a string array.
|
java.lang.String |
stringValue()
Get the data converted to a scalar string.
|
java.lang.String |
stringValueAt(int index)
Get the value of the array element identified by the index and convert
it to a string.
|
java.lang.String |
toString()
Override toString to return a representation of the data as an array.
|
protected ArrayValue _store
public ChannelRecord(ValueAdaptor adaptor)
adaptor
- from which to generate a recordpublic int getCount()
public java.lang.Class<?> getType()
public byte byteValue()
public byte byteValueAt(int index)
index
- The index of the array element to get.public byte[] byteArray()
public short shortValue()
public short shortValueAt(int index)
index
- The index of the array element to get.public short[] shortArray()
public int intValue()
public int intValueAt(int index)
index
- The index of the array element to get.public int[] intArray()
public float floatValue()
public float floatValueAt(int index)
index
- The index of the array element to get.public float[] floatArray()
public double doubleValue()
public double doubleValueAt(int index)
index
- The index of the array element to get.public double[] doubleArray()
public java.lang.String stringValue()
public java.lang.String stringValueAt(int index)
index
- The index of the array element to get.public java.lang.String[] stringArray()
public java.lang.String toString()
toString
in class java.lang.Object