|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--step.StepData
Implementation of the built-in STEP data
type.
Field Summary | |
static FieldDef |
LENGTH_FIELD
|
static Type |
TYPE
The STEP type for data objects. |
Constructor Summary | |
StepData(byte[] data)
Create a new data object from an array of bytes. |
Method Summary | |
boolean |
equals(Object o)
Compare two data objects for equality. |
byte[] |
getData()
Get the underlying byte data for this object. |
int |
hashCode()
Get the hash-code for this object. |
String |
toString()
Get a text version of this data object. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final Type TYPE
data
objects.
public static final FieldDef LENGTH_FIELD
Constructor Detail |
public StepData(byte[] data)
data
object from an array of bytes.
Method Detail |
public byte[] getData()
public boolean equals(Object o)
data
objects for equality.
The objects are equivalent if their data are the same size and contain the same values.
The algorithm is fail-fast.
equals
in interface StepObject
equals
in class Object
public int hashCode()
for (i=0; i<value.length; i++) code = (code << 1) ^ (hashCode[i]);
hashCode
in interface StepObject
hashCode
in class Object
equals(Object)
public String toString()
The output is a list of byte values in hexadecimal.
toString
in class Object
Hex.toString(byte[])
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |