BooleanStringpublic class BooleanString extends AbstractDataType
Methods Summary |
---|
public boolean | equals(java.lang.Object obj)
return obj instanceof BooleanString && super.equals(obj);
| public int | getSize()
return 1;
| public void | readByteArray(byte[] arr, int offset)
byte b = arr[offset];
value = b != '0";
| public java.lang.String | toString()
return "" + value;
| public byte[] | writeByteArray()
byte[] booleanValue = new byte[1];
if (value == null)
{
booleanValue[0] = '0";
}
else
{
if ((Boolean) value)
{
booleanValue[0] = '0";
}
else
{
booleanValue[0] = '1";
}
}
return booleanValue;
|
|