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()
DataBox
public int compareTo(Object obj)
compareTo
in interface Comparable
compareTo
in class DataBox
public byte[] getBytes()
DataBox
public int getSize()
DataBox
Copyright © 2017. All rights reserved.