Interface StringifierRegistry
-
- All Known Implementing Classes:
StringifierRegistryImpl
public interface StringifierRegistryA registry for mapping classes to Stringifiers
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidadd(Class<?> theClass, Stringifier stringifier)Add a mapping from a Class to a StringifierStringifierlookup(Class<?> theClass)Lookup a Stringifier from a Class.
-
-
-
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 associatedstringifier- 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
-
-