public class FloatFormatter extends NumberFormatter
| Modifier and Type | Field and Description |
|---|---|
static String |
ERROR_MSG_KEY |
BIGDECIMAL, BIGDECIMAL_L, BOOLEAN, BYTE, DATE, DATE_L, DB_TAGS, DOUBLE, DOUBLE_L, FLOAT, FLOAT_L, INTEGER, INTEGER_L, KEYWORDS, LOCAL_DATE, LOCAL_DATE_L, LOCAL_DATETIME, LOCAL_DATETIME_L, LOCAL_DATETIME_M, LOCAL_DATETIME_ML, LOCAL_TIME, LOCAL_TIME_M, LONG, LONG_L, OFFSET_DATETIME, OFFSET_DATETIME_L, OFFSET_DATETIME_M, OFFSET_DATETIME_ML, OFFSET_TIME, OFFSET_TIME_M, SHORT, SHORT_L, STRING, STRING_ELC, STRING_EUC, TAG, TAGS, TEXT, TEXT_ML, TIME, TIME_M, TIMESTAMP, TIMESTAMP_L, TIMESTAMP_M, TIMESTAMP_ML, YEAR_MONTH, YEAR_MONTH_L| Constructor and Description |
|---|
FloatFormatter() |
FloatFormatter(boolean localized) |
| Modifier and Type | Method and Description |
|---|---|
Class<?> |
getArgType() |
String |
getErrorMsgKey() |
protected NumberFormat |
getLocalizedFormat(FormatProvider formatProvider) |
Float |
parse(String str,
FormatProvider formatProvider) |
format, parseNumberclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waittoNumberOverflowError, toParsingError, toParsingErrorpublic static final String ERROR_MSG_KEY
public FloatFormatter()
public FloatFormatter(boolean localized)
public String getErrorMsgKey()
public Class<?> getArgType()
protected NumberFormat getLocalizedFormat(FormatProvider formatProvider)
getLocalizedFormat in class NumberFormatterpublic Float parse(String str, FormatProvider formatProvider) throws FormatterException
FormatterExceptionCopyright © 2021. All rights reserved.