Interface StringifierRegistry

  • All Known Implementing Classes:
    StringifierRegistryImpl

    public interface StringifierRegistry
    A registry for mapping classes to Stringifiers
    • Method Detail

      • add

        void add​(Class<?> theClass,
                 Stringifier stringifier)
        Add a mapping from a Class to a Stringifier
        Parameters:
        theClass - the Class to which the Stringifier should be associated
        stringifier - the Stringifier for the class
      • lookup

        Stringifier lookup​(Class<?> theClass)
        Lookup a Stringifier from a Class.
        Parameters:
        theClass - the Class
        Returns:
        the Stringifier, or null if not found