Java in a Nutshell Online Quick Reference for Java 1.1
Availability: JDK 1.1
public class ChoiceFormat extends NumberFormat { // Public Constructors public ChoiceFormat(String newPattern); public ChoiceFormat(double[] limits, String[] formats); // Class Methods public static final double nextDouble(double d); public static double nextDouble(double d, boolean positive); public static final double previousDouble(double d); // Public Instance Methods public void applyPattern(String newPattern); public Object clone(); // Overrides NumberFormat.clone() public boolean equals(Object obj); // Overrides NumberFormat.equals() public StringBuffer format(long number, StringBuffer toAppendTo, FieldPosition status); // Defines NumberFormat.format() public StringBuffer format(double number, StringBuffer toAppendTo, FieldPosition status); // Defines NumberFormat.format() public Object[] getFormats(); public double[] getLimits(); public int hashCode(); // Overrides NumberFormat.hashCode() public Number parse(String text, ParsePosition status); // Defines NumberFormat.parse() public void setChoices(double[] limits, String[] formats); public String toPattern(); }