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