Package com.tailf.proto
Class ConfEFloat
Object
com.tailf.proto.ConfEObject
com.tailf.proto.ConfEDouble
com.tailf.proto.ConfEFloat
- All Implemented Interfaces:
Serializable
,Cloneable
Provides a Java representation of E floats and doubles.
- See Also:
-
Constructor Summary
ConstructorDescriptionConfEFloat
(float f) Create an E float from the given float value.Create an E float from a stream containing a float encoded in E external format. -
Method Summary
Methods inherited from class com.tailf.proto.ConfEDouble
doubleValue, encode, equals, floatValue, hashCode, toString
Methods inherited from class com.tailf.proto.ConfEObject
clone, decode
-
Constructor Details
-
ConfEFloat
public ConfEFloat(float f) Create an E float from the given float value. -
ConfEFloat
Create an E float from a stream containing a float encoded in E external format.- Parameters:
buf
- the stream containing the encoded value.- Throws:
ConfEDecodeException
- if the buffer does not contain a valid external representation of an E float.ConfERangeException
- if the value cannot be represented as a Java float.
-