public class BoolDataBox extends DataBox
DataBox.Types| Constructor and Description | 
|---|
BoolDataBox()
Construct an empty BoolDataBox. 
 | 
BoolDataBox(boolean b)
Construct a BoolDataBox with value b. 
 | 
BoolDataBox(byte[] buf)
Construct a BoolDataBox from a byte buffer. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
int | 
compareTo(Object obj)  | 
boolean | 
equals(Object obj)  | 
boolean | 
getBool()  | 
byte[] | 
getBytes()
Returns a byte array with the data contained by this DataBox. 
 | 
int | 
getSize()
Returns the fixed size of this DataBox. 
 | 
void | 
setBool(boolean b)  | 
String | 
toString()  | 
DataBox.Types | 
type()
Returns the type of the DataBox. 
 | 
public BoolDataBox()
public BoolDataBox(boolean b)
b - the value of the BoolDataBoxpublic BoolDataBox(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.