Package org.jboss.marshalling.util
Class BooleanReadField
java.lang.Object
org.jboss.marshalling.util.ReadField
org.jboss.marshalling.util.BooleanReadField
- All Implemented Interfaces:
Comparable<ReadField>
A read field whose value is a boolean type.
-
Constructor Summary
ConstructorsConstructorDescriptionConstruct a new instance with the default value.BooleanReadField(SerializableField field, boolean value) Construct a new instance. -
Method Summary
Modifier and TypeMethodDescriptionbooleanGet the boolean value of this field.getKind()Get the kind of field represented by this object.
-
Constructor Details
-
BooleanReadField
Construct a new instance.- Parameters:
field- the serializable fieldvalue- the value
-
BooleanReadField
Construct a new instance with the default value.- Parameters:
field- the serializable field
-
-
Method Details
-
getKind
Get the kind of field represented by this object. -
getBoolean
Get the boolean value of this field.- Overrides:
getBooleanin classReadField- Returns:
- the boolean value of this field
- Throws:
IOException- if the value cannot be read
-