Class ConverterLocator

    • Method Detail

      • get

        public final <C> IConverter<C> get​(Class<C> c)
        Gets the type converter that is registered for class c.
        Type Parameters:
        C - The object to convert from and to String
        Parameters:
        c - The class to get the type converter for
        Returns:
        The type converter that is registered for class c or null if no type converter was registered for class c
      • remove

        public final IConverter<?> remove​(Class<?> c)
        Removes the type converter currently registered for class c.
        Parameters:
        c - The class for which the converter registration should be removed
        Returns:
        The converter that was registered for class c before removal or null if none was registered
      • set

        public final IConverter<?> set​(Class<?> c,
                                       IConverter<?> converter)
        Registers a converter for use with class c.
        Parameters:
        converter - The converter to add
        c - The class for which the converter should be used
        Returns:
        The previous registered converter for class c or null if none was registered yet for class c