public class FastChoiceFormat extends Object implements FastFormat
Constructor and Description |
---|
FastChoiceFormat(String pattern)
Creates a new ChoiceFormat with the given pattern and the default locale.
|
FastChoiceFormat(String pattern,
Locale locale)
Creates a new ChoiceFormat with the given pattern and locale.
|
Modifier and Type | Method and Description |
---|---|
FastChoiceFormat |
clone()
Clones the object.
|
String |
format(Object parameters)
Formats the given object using the choice-pattern.
|
Locale |
getLocale()
Returns the current locale of the formatter.
|
String |
getPattern()
Returns the currently active pattern.
|
public FastChoiceFormat(String pattern)
pattern
- the pattern.public Locale getLocale()
getLocale
in interface FastFormat
public String getPattern()
public String format(Object parameters)
format
in interface FastFormat
parameters
- the parameters, usually a Number- or Date object.public FastChoiceFormat clone()
clone
in interface FastFormat
clone
in class Object
CloneNotSupportedException
- if cloning failed for some reason.