public class IntDataBox extends DataBox
DataBox.Types| Constructor and Description |
|---|
IntDataBox()
Construct an empty IntDataBox with value 0.
|
IntDataBox(byte[] buf)
Construct an IntDataBox from the bytes in buf.
|
IntDataBox(int i)
Constructs an IntDataBox with value i.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Object obj) |
boolean |
equals(Object obj) |
byte[] |
getBytes()
Returns a byte array with the data contained by this DataBox.
|
int |
getInt() |
int |
getSize()
Returns the fixed size of this DataBox.
|
void |
setInt(int i) |
String |
toString() |
DataBox.Types |
type()
Returns the type of the DataBox.
|
public IntDataBox()
public IntDataBox(int i)
i - the value of the IntDataBoxpublic IntDataBox(byte[] buf)
buf - the byte buffer sourcepublic DataBox.Types type()
DataBoxpublic int compareTo(Object obj)
compareTo in interface ComparablecompareTo in class DataBoxpublic byte[] getBytes()
DataBoxpublic int getSize()
DataBoxCopyright © 2017. All rights reserved.