JSR-62 (Final)

Uses of Class
java.lang.Number

Packages that use Number
java.lang   
java.math Provides classes for performing arbitrary-precision integer arithmetic (BigInteger) and arbitrary-precision decimal arithmetic (BigDecimal). 
java.text   
 

Uses of Number in java.lang
 

Subclasses of Number in java.lang
 class Byte
          The Byte class is the standard wrapper for byte values.
 class Double
          The Double class wraps a value of the primitive type double in an object.
 class Float
          The Float class wraps a value of primitive type float in an object.
 class Integer
          The Integer class wraps a value of the primitive type int in an object.
 class Long
          The Long class wraps a value of the primitive type long in an object.
 class Short
          The Short class is the standard wrapper for short values.
 

Uses of Number in java.math
 

Subclasses of Number in java.math
 class BigDecimal
          Immutable, arbitrary-precision signed decimal numbers.
 class BigInteger
          Immutable arbitrary-precision integers.
 

Uses of Number in java.text
 

Methods in java.text that return Number
 Number DecimalFormat.parse(String text, ParsePosition parsePosition)
          Returns an instance of Number with a value matching the given string.
 Number ChoiceFormat.parse(String text, ParsePosition status)
          Parses a Number from the input text.
abstract  Number NumberFormat.parse(String text, ParsePosition parsePosition)
          Returns a Long if possible (e.g., within the range [Long.MIN_VALUE, Long.MAX_VALUE] and with no decimals), otherwise a Double.
 Number NumberFormat.parse(String text)
          Convenience method.
 


JSR-62 (Final)

Java and Java 2D are trademarks or registered trademarks of Sun Microsystems, Inc. in the U.S. and other countries.
Copyright 1993 - 2002 Sun Microsystems, Inc., 901 San Antonio Road, Palo Alto, California 94303, U.S.A. All Rights Reserved.
Use of this specification is subject to this license.