Class 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 Details

    • LongValueTranscoder

      public LongValueTranscoder()
      Default constructor.
    • LongValueTranscoder

      public LongValueTranscoder(boolean b)
      Creates a new long value transcoder.
      Parameters:
      b - whether this transcoder is operating on a primitive
  • Method Details

    • 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