Interface AdvancedMessageFormat.ObjectFormatter
- Enclosing class:
- AdvancedMessageFormat
public static interface AdvancedMessageFormat.ObjectFormatter
Implementations of this interface format certain objects to strings.
-
Method Summary
Modifier and TypeMethodDescriptionvoidformat(StringBuffer sb, Object obj) Formats an object to a string and writes the result to a string buffer.booleansupportsObject(Object obj) Indicates whether a given object is supported.
-
Method Details
-
format
Formats an object to a string and writes the result to a string buffer.- Parameters:
sb- the target string bufferobj- the object to be formatted
-
supportsObject
Indicates whether a given object is supported.- Parameters:
obj- the object- Returns:
- true if the object is supported by the formatter
-