Interface CBBooleanType
- All Superinterfaces:
CBSerializableType, Formattable
public sealed interface CBBooleanType
extends Formattable, CBSerializableType
permits CBFalse, CBTrue
The boolean type.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic CBBooleanTypedeserialize(CBSerializationContextType context) Deserialize the given value.static CBBooleanTypefromBoolean(boolean b) A boolean from the given boolean value.static voidserialize(CBSerializationContextType context, CBBooleanType x) Serialize the given value.Methods inherited from interface Formattable
formatTo
-
Method Details
-
asBoolean
boolean asBoolean()- Returns:
- This value as a Java boolean
-
fromBoolean
A boolean from the given boolean value.- Parameters:
b- The Java boolean- Returns:
- The boolean
-
serialize
Serialize the given value.- Parameters:
context- The serialization contextx- The value- Throws:
IOException- On errors
-
deserialize
Deserialize the given value.- Parameters:
context- The serialization context- Returns:
- The deserialized value
- Throws:
IOException- On errors
-