Package org.ldaptive.io
Class LongValueTranscoder
- java.lang.Object
-
- org.ldaptive.io.AbstractStringValueTranscoder<T>
-
- org.ldaptive.io.AbstractPrimitiveValueTranscoder<Long>
-
- org.ldaptive.io.LongValueTranscoder
-
- All Implemented Interfaces:
ValueTranscoder<Long>
public class LongValueTranscoder extends AbstractPrimitiveValueTranscoder<Long>
Decodes and encodes a long for use in an ldap attribute value.
-
-
Constructor Summary
Constructors Constructor Description LongValueTranscoder()
Default constructor.LongValueTranscoder(boolean b)
Creates a new long value transcoder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Long
decodeStringValue(String value)
Decodes the supplied ldap attribute value into a custom type.Class<Long>
getType()
Returns the type produced by this value transcoder.-
Methods inherited from class org.ldaptive.io.AbstractPrimitiveValueTranscoder
encodeStringValue, isPrimitive, setPrimitive
-
Methods inherited from class org.ldaptive.io.AbstractStringValueTranscoder
decodeBinaryValue, encodeBinaryValue
-
-
-
-
Method Detail
-
decodeStringValue
public Long 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<Long> getType()
Description copied from interface:ValueTranscoder
Returns the type produced by this value transcoder.- Returns:
- type produced by this value transcoder
-
-