ChoiceFormat Members

ChoiceFormat Members

Class Overview | This Package | All Packages

Constructors
Name Description
ChoiceFormat(double[], String[]) Constructs with the limits and the corresponding formats.
ChoiceFormat(String) Constructs with limits and corresponding formats based on the pattern.

Methods
Name Description
applyPattern(String) Sets the pattern.
clone() Overrides Cloneable
equals(Object) Equality comparision between two
format(double, StringBuffer, FieldPosition) Specialization of format.
format(long, StringBuffer, FieldPosition) Specialization of format.
getFormats() Get the formats passed in the constructor.
getLimits() Get the limits passed in the constructor.
hashCode() Generates a hash code for the message format object.
nextDouble(double) Finds the least double greater than d.
nextDouble(double, boolean)  
parse(String, ParsePosition) Returns a Long if possible (e.g.
previousDouble(double) Finds the greatest double less than d.
setChoices(double[], String[]) Set the choices to be used in formatting.
toPattern() Gets the pattern.