|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--cdev.data.DataEntry
Constructor Summary | |
DataEntry(int newkey,
byte d)
Construct a DataEntry from a byte |
|
DataEntry(int newkey,
double d)
Construct a DataEntry from a double |
|
DataEntry(int newkey,
float d)
Construct a DataEntry from a float |
|
DataEntry(int newkey,
int d)
Construct a DataEntry from a int |
|
DataEntry(int newKey,
int newType,
int[] newDims)
Construct a DataEntry with specified key, dimensions, and type. |
|
DataEntry(int newkey,
long d)
Construct a DataEntry from a long |
|
DataEntry(int newkey,
java.lang.Object d)
Construct a DataEntry from an object. |
|
DataEntry(int newkey,
short d)
Construct a DataEntry from a short |
Method Summary | |
byte[] |
byteArray()
Return the data as an array of bytes. |
byte |
byteValue()
Get a byte from the DataEntry. |
java.lang.Object |
clone()
Creates a new object whose content is a full copy of this data entry. |
double[] |
doubleArray()
Return the data as an array of doubles. |
double |
doubleValue()
Get a double from the DataEntry. |
float[] |
floatArray()
Return the data as an array of floats. |
float |
floatValue()
Get a float from the DataEntry. |
java.lang.Class |
getComponentType()
Get the component data type (returns the Class). |
int |
getDim()
Get the number of dimensions. |
int[] |
getDimensions()
Get the array of dimensions. |
int |
getEnumeratedType()
Get the enumerated data type (returns an int type). |
int |
getKey()
Get the integer key. |
java.lang.String |
getKeyAsString()
Get the key as a String. |
java.lang.Object |
getValue()
Get the contained data. |
int[] |
intArray()
Return the data as an array of integers. |
int |
intValue()
Get an integer from the DataEntry. |
long[] |
longArray()
Return the data as an array of longs. |
long |
longValue()
Get a long from the DataEntry. |
int |
nelems()
Get the number of elements in the data array (if scalar, return 1). |
int |
setKey(int ikey)
Change the integer key, and return the old key. |
short[] |
shortArray()
Return the data as an array of shorts. |
short |
shortValue()
Get a short from the DataEntry. |
DataEntry |
smartCompareCopy(DataEntry dst)
Performs a compare & copy on the content of a data entry. |
java.lang.String[] |
stringArray()
Return the data as an array of Strings. |
java.lang.String |
stringValue()
Return the string value of data in this DataEntry object. |
java.lang.String |
toString()
Convert the entire DataEntry object to a string. |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Constructor Detail |
public DataEntry(int newkey, java.lang.Object d)
public DataEntry(int newkey, double d)
public DataEntry(int newkey, float d)
public DataEntry(int newkey, long d)
public DataEntry(int newkey, int d)
public DataEntry(int newkey, short d)
public DataEntry(int newkey, byte d)
public DataEntry(int newKey, int newType, int[] newDims) throws java.lang.IllegalArgumentException
newKey
- The key of DataEntrynewType
- an int for the typenewDims
- an array of int for the array of dimensionsMethod Detail |
public int[] getDimensions()
public int getDim()
public int getKey()
public java.lang.String getKeyAsString()
public int setKey(int ikey)
public java.lang.Class getComponentType()
public int getEnumeratedType()
public int nelems()
public java.lang.Object getValue()
public double doubleValue()
public float floatValue()
public long longValue()
public int intValue()
public short shortValue()
public byte byteValue()
public java.lang.String stringValue()
public double[] doubleArray()
public float[] floatArray()
public int[] intArray()
public short[] shortArray()
public long[] longArray()
public byte[] byteArray()
public java.lang.String[] stringArray()
public java.lang.String toString()
public java.lang.Object clone() throws java.lang.CloneNotSupportedException, java.lang.IllegalArgumentException
public final DataEntry smartCompareCopy(DataEntry dst) throws java.lang.CloneNotSupportedException
dst
- The destination data entry. If null, a clone of this data entry is returned.clone()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |