@ThreadSafe public class NumberFormatter extends FormatterSupport
| Modifier and Type | Class and Description |
|---|---|
protected static class |
NumberFormatter.Factory |
protected static class |
NumberFormatter.FormatAndPattern |
static class |
NumberFormatter.Pattern |
| Constructor and Description |
|---|
NumberFormatter(Locale locale,
NumberFormat format) |
NumberFormatter(Locale locale,
NumberFormatter.Pattern pattern) |
NumberFormatter(Locale locale,
String pattern) |
| Modifier and Type | Method and Description |
|---|---|
protected NumberFormatter.FormatAndPattern |
evaluate(Locale locale,
String pattern) |
void |
format(Object value,
Writer to) |
protected NumberFormat |
getFormat() |
static FormatterFactory<NumberFormatter> |
numberFormatterFactory() |
String |
toString() |
getLocalepublic NumberFormatter(@Nonnull Locale locale, @Nullable NumberFormat format)
public NumberFormatter(@Nonnull Locale locale, @Nullable NumberFormatter.Pattern pattern)
@Nonnull public static FormatterFactory<NumberFormatter> numberFormatterFactory()
public void format(@Nullable Object value, @Nonnull Writer to) throws IOException
IOException@Nonnull protected NumberFormatter.FormatAndPattern evaluate(@Nonnull Locale locale, @Nullable String pattern)
@Nonnull protected NumberFormat getFormat()
Copyright © 2024 echocat. All rights reserved.