Interface TypedStringConverter<T>

  • Type Parameters:
    T - the type of the converter
    All Superinterfaces:
    FromStringConverter<T>, StringConverter<T>, ToStringConverter<T>

    public interface TypedStringConverter<T>
    extends StringConverter<T>
    Interface defining conversion to and from a String together with the type.

    TypedStringConverter is an interface and must be implemented with care. Implementations must be immutable and thread-safe.

    • Method Detail

      • getEffectiveType

        java.lang.Class<?> getEffectiveType()
        Gets the effective type that the converter works on.

        For example, if a class declares the FromString and ToString then the effective type of the converter is that class. If a subclass is queried for a converter, then the effective type is that of the superclass.

        the effective type