Class CustomFormatter
java.lang.Object
be.dezijwegel.betteryaml.formatting.CustomFormatter
public class CustomFormatter extends Object
-
Constructor Summary
Constructors Constructor Description CustomFormatter() -
Method Summary
Modifier and Type Method Description CustomFormatteraddFormatter(Class<?> type, IFormatter formatter)Allows public modification, will very likely remain unusedStringformat(Object o, String serialised)
-
Constructor Details
-
CustomFormatter
public CustomFormatter()
-
-
Method Details
-
addFormatter
Allows public modification, will very likely remain unused- Parameters:
type- the class for which different formatting is desiredformatter- the formatter we want to use for this type- Returns:
- the CustomFormatter object, this allows chaining to achieve a builder-pattern-like behaviour
-
format
-