< prev index next >

src/java.base/share/classes/java/lang/Number.java

Print this page
rev 60127 : 8249205: Remove unnecessary trademark symbols


  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 package java.lang;
  27 
  28 /**
  29  * The abstract class {@code Number} is the superclass of platform
  30  * classes representing numeric values that are convertible to the
  31  * primitive types {@code byte}, {@code double}, {@code float}, {@code
  32  * int}, {@code long}, and {@code short}.
  33  *
  34  * The specific semantics of the conversion from the numeric value of
  35  * a particular {@code Number} implementation to a given primitive
  36  * type is defined by the {@code Number} implementation in question.
  37  *
  38  * For platform classes, the conversion is often analogous to a
  39  * narrowing primitive conversion or a widening primitive conversion
  40  * as defined in <cite>The Java&trade; Language Specification</cite>
  41  * for converting between primitive types.  Therefore, conversions may
  42  * lose information about the overall magnitude of a numeric value, may
  43  * lose precision, and may even return a result of a different sign
  44  * than the input.
  45  *
  46  * See the documentation of a given {@code Number} implementation for
  47  * conversion details.
  48  *
  49  * @author      Lee Boynton
  50  * @author      Arthur van Hoff
  51  * @jls 5.1.2 Widening Primitive Conversion
  52  * @jls 5.1.3 Narrowing Primitive Conversion
  53  * @since   1.0
  54  */
  55 public abstract class Number implements java.io.Serializable {
  56     /**
  57      * Constructor for subclasses to call.
  58      */
  59     public Number() {super();}
  60 




  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 package java.lang;
  27 
  28 /**
  29  * The abstract class {@code Number} is the superclass of platform
  30  * classes representing numeric values that are convertible to the
  31  * primitive types {@code byte}, {@code double}, {@code float}, {@code
  32  * int}, {@code long}, and {@code short}.
  33  *
  34  * The specific semantics of the conversion from the numeric value of
  35  * a particular {@code Number} implementation to a given primitive
  36  * type is defined by the {@code Number} implementation in question.
  37  *
  38  * For platform classes, the conversion is often analogous to a
  39  * narrowing primitive conversion or a widening primitive conversion
  40  * as defined in <cite>The Java Language Specification</cite>
  41  * for converting between primitive types.  Therefore, conversions may
  42  * lose information about the overall magnitude of a numeric value, may
  43  * lose precision, and may even return a result of a different sign
  44  * than the input.
  45  *
  46  * See the documentation of a given {@code Number} implementation for
  47  * conversion details.
  48  *
  49  * @author      Lee Boynton
  50  * @author      Arthur van Hoff
  51  * @jls 5.1.2 Widening Primitive Conversion
  52  * @jls 5.1.3 Narrowing Primitive Conversion
  53  * @since   1.0
  54  */
  55 public abstract class Number implements java.io.Serializable {
  56     /**
  57      * Constructor for subclasses to call.
  58      */
  59     public Number() {super();}
  60 


< prev index next >