## Uses of Class
java.lang.Number

- Packages that use Number
  Package | Description
  --- | ---
  java.lang |
  java.math | Provides classes for performing arbitrary-precision integer arithmetic (`BigInteger`) and arbitrary-precision decimal arithmetic (`BigDecimal`).
  java.text |
  java.util.concurrent.atomic | A small toolkit of classes that support lock-free thread-safe programming on single variables.

- - ### Uses of Number in java.lang

    Subclasses of Number in java.lang
    Modifier and Type | Class and Description
    --- | ---
    `class` | `Byte` The `Byte` class wraps a value of primitive type `byte` in an object.
    `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 wraps a value of primitive type `short` in an object.

  - ### Uses of Number in java.math

    Subclasses of Number in java.math
    Modifier and Type | Class and Description
    --- | ---
    `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
    Modifier and Type | Method and Description
    --- | ---
    `Number` | NumberFormat.`parse(String source)` Parses text from the beginning of the given string to produce a number.
    `abstract Number` | NumberFormat.`parse(String source, 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` | DecimalFormat.`parse(String text, ParsePosition pos)` Parses text from a string to produce a `Number`.
    `Number` | ChoiceFormat.`parse(String text, ParsePosition status)` Parses a Number from the input text.

  - ### Uses of Number in java.util.concurrent.atomic

    Subclasses of Number in java.util.concurrent.atomic
    Modifier and Type | Class and Description
    --- | ---
    `class` | `AtomicInteger` An `int` value that may be updated atomically.
    `class` | `AtomicLong` A `long` value that may be updated atomically.

Copyright © 2025 API Design. All Rights Reserved.