public class FloatDataBox extends DataBox
DataBox.Types| Constructor and Description |
|---|
FloatDataBox()
Construct an empty FloatDataBox with value 0.
|
FloatDataBox(byte[] buf)
Construct a FloatDataBox from the bytes in buf
|
FloatDataBox(float f)
Construct an empty FloatDataBox with value f.
|
| 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.
|
float |
getFloat() |
int |
getSize()
Returns the fixed size of this DataBox.
|
void |
setFloat(float f) |
String |
toString() |
DataBox.Types |
type()
Returns the type of the DataBox.
|
public FloatDataBox()
public FloatDataBox(float f)
f - the value of the FloatDataBoxpublic FloatDataBox(byte[] buf)
buf - the bytes to construct the FloatDataBox frompublic 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.