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>
public class DoubleValueTranscoder extends AbstractPrimitiveValueTranscoder<Double>
Decodes and encodes a double for use in an ldap attribute value.
-
-
Constructor Summary
Constructors Constructor Description DoubleValueTranscoder()
Default constructor.DoubleValueTranscoder(boolean b)
Creates a new double value transcoder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Double
decodeStringValue(String value)
Decodes the supplied ldap attribute value into a custom type.Class<Double>
getType()
Returns the type produced by this value transcoder.-
Methods inherited from class org.ldaptive.transcode.AbstractPrimitiveValueTranscoder
encodeStringValue, isPrimitive, setPrimitive
-
Methods inherited from class org.ldaptive.transcode.AbstractStringValueTranscoder
decodeBinaryValue, encodeBinaryValue
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.ldaptive.transcode.ValueTranscoder
decoder, encoder
-
-
-
-
Method Detail
-
decodeStringValue
public Double decodeStringValue(String value)
Description copied from interface:ValueTranscoder
Decodes the supplied ldap attribute value into a custom type.- Parameters:
value
- to decode- Returns:
- decoded value
-
getType
public Class<Double> getType()
Description copied from interface:ValueTranscoder
Returns the type produced by this value transcoder.- Returns:
- type produced by this value transcoder
-
-