Class BooleanValueTranscoder

All Implemented Interfaces:
ValueTranscoder<Boolean>

public class BooleanValueTranscoder extends AbstractPrimitiveValueTranscoder<Boolean>
Decodes and encodes a boolean for use in an ldap attribute value.
  • Constructor Details

    • BooleanValueTranscoder

      public BooleanValueTranscoder()
      Default constructor.
    • BooleanValueTranscoder

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

    • decodeStringValue

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