Class FloatValueTranscoder

  • All Implemented Interfaces:
    ValueTranscoder<java.lang.Float>

    public class FloatValueTranscoder
    extends AbstractPrimitiveValueTranscoder<java.lang.Float>
    Decodes and encodes a float for use in an ldap attribute value.
    Author:
    Middleware Services
    • Constructor Detail

      • FloatValueTranscoder

        public FloatValueTranscoder()
        Default constructor.
      • FloatValueTranscoder

        public FloatValueTranscoder​(boolean b)
        Creates a new float value transcoder.
        Parameters:
        b - whether this transcoder is operating on a primitive
    • Method Detail

      • decodeStringValue

        public java.lang.Float decodeStringValue​(java.lang.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 java.lang.Class<java.lang.Float> getType()
        Description copied from interface: ValueTranscoder
        Returns the type produced by this value transcoder.
        Returns:
        type produced by this value transcoder