Java in a Nutshell Online Quick Reference for Java 1.1

CLASS java.text.NumberFormat

Availability: JDK 1.1

public abstract class NumberFormat extends Format implements Cloneable {
   // Default Constructor: public NumberFormat()
   // Constants
      public static final int FRACTION_FIELD;
      public static final int INTEGER_FIELD;
   // Class Methods
      public static Locale[] getAvailableLocales();
      public static final NumberFormat getCurrencyInstance();
      public static NumberFormat getCurrencyInstance(Locale inLocale);
      public static final NumberFormat getInstance();
      public static NumberFormat getInstance(Locale inLocale);
      public static final NumberFormat getNumberInstance();
      public static NumberFormat getNumberInstance(Locale inLocale);
      public static final NumberFormat getPercentInstance();
      public static NumberFormat getPercentInstance(Locale inLocale);
   // Public Instance Methods
      public Object clone();  // Overrides Format.clone()
      public boolean equals(Object obj);  // Overrides Object.equals()
      public final StringBuffer format(Object number, StringBuffer toAppendTo, FieldPosition pos);  // Defines Format.format()
      public final String format(double number);
      public final String format(long number);
      public abstract StringBuffer format(double number, StringBuffer toAppendTo, FieldPosition pos);
      public abstract StringBuffer format(long number, StringBuffer toAppendTo, FieldPosition pos);
      public int getMaximumFractionDigits();
      public int getMaximumIntegerDigits();
      public int getMinimumFractionDigits();
      public int getMinimumIntegerDigits();
      public int hashCode();  // Overrides Object.hashCode()
      public boolean isGroupingUsed();
      public boolean isParseIntegerOnly();
      public abstract Number parse(String text, ParsePosition parsePosition);
      public Number parse(String text) throws ParseException;
      public final Object parseObject(String source, ParsePosition parsePosition);  // Defines Format.parseObject()
      public void setGroupingUsed(boolean newValue);
      public void setMaximumFractionDigits(int newValue);
      public void setMaximumIntegerDigits(int newValue);
      public void setMinimumFractionDigits(int newValue);
      public void setMinimumIntegerDigits(int newValue);
      public void setParseIntegerOnly(boolean value);
}

Java in a Nutshell Online Quick Reference for Java 1.1
Created by David Flanagan. Copyright © 1997 by O'Reilly & Associates.