Package org.ldaptive.transcode
Class DoubleValueTranscoder
java.lang.Object
org.ldaptive.transcode.AbstractStringValueTranscoder<T>
org.ldaptive.transcode.AbstractPrimitiveValueTranscoder<Double>
org.ldaptive.transcode.DoubleValueTranscoder
- All Implemented Interfaces:
ValueTranscoder<Double>
Decodes and encodes a double for use in an ldap attribute value.
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.DoubleValueTranscoder(boolean b) Creates a new double value transcoder. -
Method Summary
Methods inherited from class org.ldaptive.transcode.AbstractPrimitiveValueTranscoder
encodeStringValue, isPrimitive, setPrimitiveMethods inherited from class org.ldaptive.transcode.AbstractStringValueTranscoder
decodeBinaryValue, encodeBinaryValueMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.ldaptive.transcode.ValueTranscoder
decoder, encoder
-
Constructor Details
-
DoubleValueTranscoder
public DoubleValueTranscoder()Default constructor. -
DoubleValueTranscoder
public DoubleValueTranscoder(boolean b) Creates a new double value transcoder.- Parameters:
b- whether this transcoder is operating on a primitive
-
-
Method Details
-
decodeStringValue
Description copied from interface:ValueTranscoderDecodes the supplied ldap attribute value into a custom type.- Parameters:
value- to decode- Returns:
- decoded value
-
getType
Description copied from interface:ValueTranscoderReturns the type produced by this value transcoder.- Returns:
- type produced by this value transcoder
-