Package org.ldaptive.transcode
Class IntegerValueTranscoder
java.lang.Object
org.ldaptive.transcode.AbstractStringValueTranscoder<T>
org.ldaptive.transcode.AbstractPrimitiveValueTranscoder<Integer>
org.ldaptive.transcode.IntegerValueTranscoder
- All Implemented Interfaces:
ValueTranscoder<Integer>
Decodes and encodes an integer for use in an ldap attribute value.
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.IntegerValueTranscoder(boolean b) Creates a new integer 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
-
IntegerValueTranscoder
public IntegerValueTranscoder()Default constructor. -
IntegerValueTranscoder
public IntegerValueTranscoder(boolean b) Creates a new integer 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
-