Package com.tailf.proto
Class ConfEBoolean
Object
com.tailf.proto.ConfEObject
com.tailf.proto.ConfEAtom
com.tailf.proto.ConfEBoolean
- All Implemented Interfaces:
Serializable
,Cloneable
Provides a Java representation of E booleans, which are special cases of
atoms with values 'true' and 'false'.
- See Also:
-
Field Summary
Fields inherited from class com.tailf.proto.ConfEAtom
maxAtomLength
-
Constructor Summary
ConstructorDescriptionConfEBoolean
(boolean t) Create a boolean from the given valueCreate a boolean from a stream containing an atom encoded in E external format. -
Method Summary
Methods inherited from class com.tailf.proto.ConfEAtom
atomValue, booleanValue, encode, equals, hashCode, toString
Methods inherited from class com.tailf.proto.ConfEObject
clone, decode
-
Constructor Details
-
ConfEBoolean
public ConfEBoolean(boolean t) Create a boolean from the given value- Parameters:
t
- the boolean value to represent as an atom.
-
ConfEBoolean
Create a boolean from a stream containing an atom encoded in E external format. The value of the boolean will be true if the atom represented by the stream is "true" without regard to case. For other atom values, the boolean will have the value false.- Throws:
ConfEDecodeException
- if the buffer does not contain a valid external representation of an E atom.
-