public class LoggableBuilder
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static <T> LoggableValue |
convertToLoggable(java.lang.String key,
T obj)
Converts the object to a loggable value
|
static <T> void |
registerLoggableType(java.lang.Class<T> clazz,
ConvertToLoggable<T> convertToLoggable)
Registers a new log converting object for a given class
|
public static <T> void registerLoggableType(@NotNull java.lang.Class<T> clazz, @NotNull ConvertToLoggable<T> convertToLoggable)
T
- The type of the classclazz
- The class to registerconvertToLoggable
- The converter to handle this class@Nullable public static <T> LoggableValue convertToLoggable(@Nullable java.lang.String key, @Nullable T obj)
T
- The class of the objectkey
- The key for display (unless it is internal set to something else by the converter)obj
- The object to convert