-
- All Known Implementing Classes:
BigDecimalFormatter,BooleanFormatter,ByteFormatter,DateFormatter,DbTagsFormatter,DoubleFormatter,EnumFormatter,FloatFormatter,IntegerFormatter,Java8DateFormatter,KeywordsFormatter,LocalDateFormatter,LocalDateTimeFormatter,LocalDateTimeMFormatter,LocalTimeFormatter,LocalTimeMFormatter,LongFormatter,LUCStringFormatter,NumberFormatter,OffsetDateTimeFormatter,OffsetDateTimeMFormatter,OffsetTimeFormatter,OffsetTimeMFormatter,RoundedBigDecimalFormatter,RoundedDoubleFormatter,ShortFormatter,SqlDateFormatter,SqlTimeFormatter,SqlTimeMFormatter,SqlTimestampFormatter,SqlTimestampMFormatter,StringFormatter,TagFormatter,TagsFormatter,TextFormatter,TextMLFormatter,YearMonthFormatter
public interface Formatter- Author:
- Loc Ha
-
-
Field Summary
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description Stringformat(Object obj, FormatProvider formatProvider)Class<?>getArgType()default StringgetErrorMsgKey()Objectparse(String str, FormatProvider formatProvider)default FormatterExceptiontoNumberOverflowError(String str)default FormatterExceptiontoParsingError(String str)default FormatterExceptiontoParsingError(String str, String target)
-
-
-
Field Detail
-
BYTE
static final String BYTE
- See Also:
- Constant Field Values
-
SHORT
static final String SHORT
- See Also:
- Constant Field Values
-
SHORT_L
static final String SHORT_L
- See Also:
- Constant Field Values
-
INTEGER
static final String INTEGER
- See Also:
- Constant Field Values
-
INTEGER_L
static final String INTEGER_L
- See Also:
- Constant Field Values
-
LONG
static final String LONG
- See Also:
- Constant Field Values
-
LONG_L
static final String LONG_L
- See Also:
- Constant Field Values
-
FLOAT
static final String FLOAT
- See Also:
- Constant Field Values
-
FLOAT_L
static final String FLOAT_L
- See Also:
- Constant Field Values
-
DOUBLE
static final String DOUBLE
- See Also:
- Constant Field Values
-
DOUBLE_L
static final String DOUBLE_L
- See Also:
- Constant Field Values
-
BIGDECIMAL
static final String BIGDECIMAL
- See Also:
- Constant Field Values
-
BIGDECIMAL_L
static final String BIGDECIMAL_L
- See Also:
- Constant Field Values
-
TIME
static final String TIME
- See Also:
- Constant Field Values
-
TIME_M
static final String TIME_M
- See Also:
- Constant Field Values
-
DATE
static final String DATE
- See Also:
- Constant Field Values
-
DATE_L
static final String DATE_L
- See Also:
- Constant Field Values
-
TIMESTAMP
static final String TIMESTAMP
- See Also:
- Constant Field Values
-
TIMESTAMP_L
static final String TIMESTAMP_L
- See Also:
- Constant Field Values
-
TIMESTAMP_M
static final String TIMESTAMP_M
- See Also:
- Constant Field Values
-
TIMESTAMP_ML
static final String TIMESTAMP_ML
- See Also:
- Constant Field Values
-
LOCAL_TIME
static final String LOCAL_TIME
- See Also:
- Constant Field Values
-
LOCAL_TIME_M
static final String LOCAL_TIME_M
- See Also:
- Constant Field Values
-
LOCAL_DATE
static final String LOCAL_DATE
- See Also:
- Constant Field Values
-
LOCAL_DATE_L
static final String LOCAL_DATE_L
- See Also:
- Constant Field Values
-
LOCAL_DATETIME
static final String LOCAL_DATETIME
- See Also:
- Constant Field Values
-
LOCAL_DATETIME_L
static final String LOCAL_DATETIME_L
- See Also:
- Constant Field Values
-
LOCAL_DATETIME_M
static final String LOCAL_DATETIME_M
- See Also:
- Constant Field Values
-
LOCAL_DATETIME_ML
static final String LOCAL_DATETIME_ML
- See Also:
- Constant Field Values
-
OFFSET_TIME
static final String OFFSET_TIME
- See Also:
- Constant Field Values
-
OFFSET_TIME_M
static final String OFFSET_TIME_M
- See Also:
- Constant Field Values
-
OFFSET_DATETIME
static final String OFFSET_DATETIME
- See Also:
- Constant Field Values
-
OFFSET_DATETIME_L
static final String OFFSET_DATETIME_L
- See Also:
- Constant Field Values
-
OFFSET_DATETIME_M
static final String OFFSET_DATETIME_M
- See Also:
- Constant Field Values
-
OFFSET_DATETIME_ML
static final String OFFSET_DATETIME_ML
- See Also:
- Constant Field Values
-
YEAR_MONTH
static final String YEAR_MONTH
- See Also:
- Constant Field Values
-
YEAR_MONTH_L
static final String YEAR_MONTH_L
- See Also:
- Constant Field Values
-
BOOLEAN
static final String BOOLEAN
- See Also:
- Constant Field Values
-
STRING
static final String STRING
- See Also:
- Constant Field Values
-
STRING_EUC
static final String STRING_EUC
- See Also:
- Constant Field Values
-
STRING_ELC
static final String STRING_ELC
- See Also:
- Constant Field Values
-
TEXT
static final String TEXT
- See Also:
- Constant Field Values
-
TEXT_ML
static final String TEXT_ML
- See Also:
- Constant Field Values
-
TAG
static final String TAG
- See Also:
- Constant Field Values
-
TAGS
static final String TAGS
- See Also:
- Constant Field Values
-
DB_TAGS
static final String DB_TAGS
- See Also:
- Constant Field Values
-
KEYWORDS
static final String KEYWORDS
- See Also:
- Constant Field Values
-
-
Method Detail
-
getErrorMsgKey
default String getErrorMsgKey()
-
getArgType
Class<?> getArgType()
-
format
String format(Object obj, FormatProvider formatProvider)
-
parse
Object parse(String str, FormatProvider formatProvider) throws FormatterException
- Throws:
FormatterException
-
toParsingError
default FormatterException toParsingError(String str)
-
toParsingError
default FormatterException toParsingError(String str, String target)
-
toNumberOverflowError
default FormatterException toNumberOverflowError(String str)
-
-