Package com.composum.sling.core.util
Class FormatterFormat
- java.lang.Object
-
- java.text.Format
-
- com.composum.sling.core.util.FormatterFormat
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class FormatterFormat extends Format
a simple mapper to use a string formatter as value format- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.text.Format
Format.Field
-
-
Constructor Summary
Constructors Constructor Description FormatterFormat(@NotNull String format, @NotNull Locale locale)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringBuffer
format(Object obj, @NotNull StringBuffer toAppendTo, @NotNull FieldPosition pos)
Object
parseObject(String source, @NotNull ParsePosition pos)
-
Methods inherited from class java.text.Format
clone, format, formatToCharacterIterator, parseObject
-
-
-
-
Method Detail
-
format
public StringBuffer format(Object obj, @NotNull @NotNull StringBuffer toAppendTo, @NotNull @NotNull FieldPosition pos)
-
parseObject
public Object parseObject(String source, @NotNull @NotNull ParsePosition pos)
- Specified by:
parseObject
in classFormat
-
-