Class ShortValueTranscoder

All Implemented Interfaces:
ValueTranscoder<Short>

public class ShortValueTranscoder extends AbstractPrimitiveValueTranscoder<Short>
Decodes and encodes a short for use in an ldap attribute value.
  • 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

      public Short 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<Short> getType()
      Description copied from interface: ValueTranscoder
      Returns the type produced by this value transcoder.
      Returns:
      type produced by this value transcoder