| Package | Description | 
|---|---|
| java.awt | Contains all of the classes for creating user
interfaces and for painting graphics and images. | 
| java.lang | Provides classes that are fundamental to the design of the Java
 programming language. | 
| java.math | Provides classes for performing arbitrary-precision integer
 arithmetic ( BigInteger) and arbitrary-precision decimal
 arithmetic (BigDecimal). | 
| java.text | Provides classes and interfaces for handling text, dates, numbers, and messages
in a manner independent of natural languages. | 
| java.util.concurrent.atomic | A small toolkit of classes that support lock-free thread-safe
 programming on single variables. | 
| javax.accessibility | Defines a contract between user-interface components and an assistive technology
that provides access to those components. | 
| javax.management | Provides the core classes for the Java Management Extensions. | 
| javax.management.monitor | Provides the definition of the monitor classes. | 
| javax.swing | Provides a set of "lightweight"
(all-Java language) components that,
to the maximum degree possible, work the same on all platforms. | 
| javax.xml.datatype | XML/Java Type Mappings. | 
| Modifier and Type | Method and Description | 
|---|---|
| Number | CheckboxMenuItem.AccessibleAWTCheckboxMenuItem. getCurrentAccessibleValue()Get the value of this object as a Number. | 
| Number | Scrollbar.AccessibleAWTScrollBar. getCurrentAccessibleValue()Get the accessible value of this object. | 
| Number | Checkbox.AccessibleAWTCheckbox. getCurrentAccessibleValue()Get the value of this object as a Number. | 
| Number | Button.AccessibleAWTButton. getCurrentAccessibleValue()Get the value of this object as a Number. | 
| Number | MenuItem.AccessibleAWTMenuItem. getCurrentAccessibleValue()Get the value of this object as a Number. | 
| Number | CheckboxMenuItem.AccessibleAWTCheckboxMenuItem. getMaximumAccessibleValue()Get the maximum value of this object as a Number. | 
| Number | Scrollbar.AccessibleAWTScrollBar. getMaximumAccessibleValue()Get the maximum accessible value of this object. | 
| Number | Checkbox.AccessibleAWTCheckbox. getMaximumAccessibleValue()Get the maximum value of this object as a Number. | 
| Number | Button.AccessibleAWTButton. getMaximumAccessibleValue()Get the maximum value of this object as a Number. | 
| Number | MenuItem.AccessibleAWTMenuItem. getMaximumAccessibleValue()Get the maximum value of this object as a Number. | 
| Number | CheckboxMenuItem.AccessibleAWTCheckboxMenuItem. getMinimumAccessibleValue()Get the minimum value of this object as a Number. | 
| Number | Scrollbar.AccessibleAWTScrollBar. getMinimumAccessibleValue()Get the minimum accessible value of this object. | 
| Number | Checkbox.AccessibleAWTCheckbox. getMinimumAccessibleValue()Get the minimum value of this object as a Number. | 
| Number | Button.AccessibleAWTButton. getMinimumAccessibleValue()Get the minimum value of this object as a Number. | 
| Number | MenuItem.AccessibleAWTMenuItem. getMinimumAccessibleValue()Get the minimum value of this object as a Number. | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | CheckboxMenuItem.AccessibleAWTCheckboxMenuItem. setCurrentAccessibleValue(Number n)Set the value of this object as a Number. | 
| boolean | Scrollbar.AccessibleAWTScrollBar. setCurrentAccessibleValue(Number n)Set the value of this object as a Number. | 
| boolean | Checkbox.AccessibleAWTCheckbox. setCurrentAccessibleValue(Number n)Set the value of this object as a Number. | 
| boolean | Button.AccessibleAWTButton. setCurrentAccessibleValue(Number n)Set the value of this object as a Number. | 
| boolean | MenuItem.AccessibleAWTMenuItem. setCurrentAccessibleValue(Number n)Set the value of this object as a Number. | 
| Modifier and Type | Class and Description | 
|---|---|
| class  | ByteThe  Byteclass wraps a value of primitive typebytein an object. | 
| class  | DoubleThe  Doubleclass wraps a value of the primitive typedoublein an object. | 
| class  | FloatThe  Floatclass wraps a value of primitive typefloatin an object. | 
| class  | IntegerThe  Integerclass wraps a value of the primitive typeintin an object. | 
| class  | LongThe  Longclass wraps a value of the primitive typelongin an object. | 
| class  | ShortThe  Shortclass wraps a value of primitive typeshortin an object. | 
| Modifier and Type | Class and Description | 
|---|---|
| class  | BigDecimalImmutable, arbitrary-precision signed decimal numbers. | 
| class  | BigIntegerImmutable arbitrary-precision integers. | 
| Modifier and Type | Method and Description | 
|---|---|
| Number | NumberFormat. parse(String source)Parses text from the beginning of the given string to produce a number. | 
| 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. | 
| 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. | 
| Modifier and Type | Class and Description | 
|---|---|
| class  | AtomicIntegerAn  intvalue that may be updated atomically. | 
| class  | AtomicLongA  longvalue that may be updated atomically. | 
| class  | DoubleAccumulatorOne or more variables that together maintain a running  doublevalue updated using a supplied function. | 
| class  | DoubleAdderOne or more variables that together maintain an initially zero
  doublesum. | 
| class  | LongAccumulatorOne or more variables that together maintain a running  longvalue updated using a supplied function. | 
| class  | LongAdderOne or more variables that together maintain an initially zero
  longsum. | 
| Modifier and Type | Method and Description | 
|---|---|
| Number | AccessibleValue. getCurrentAccessibleValue()Get the value of this object as a Number. | 
| Number | AccessibleValue. getMaximumAccessibleValue()Get the maximum value of this object as a Number. | 
| Number | AccessibleValue. getMinimumAccessibleValue()Get the minimum value of this object as a Number. | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | AccessibleValue. setCurrentAccessibleValue(Number n)Set the value of this object as a Number. | 
| Modifier and Type | Method and Description | 
|---|---|
| static ValueExp | Query. value(Number val)Returns a numeric value expression that can be used in any Query call
 that expects a ValueExp. | 
| Modifier and Type | Method and Description | 
|---|---|
| Number | GaugeMonitorMBean. getDerivedGauge()Deprecated. 
 As of JMX 1.2, replaced by  GaugeMonitorMBean.getDerivedGauge(ObjectName) | 
| Number | GaugeMonitor. getDerivedGauge()Deprecated. 
 As of JMX 1.2, replaced by
  GaugeMonitor.getDerivedGauge(ObjectName) | 
| Number | CounterMonitorMBean. getDerivedGauge()Deprecated. 
 As of JMX 1.2, replaced by  CounterMonitorMBean.getDerivedGauge(ObjectName) | 
| Number | CounterMonitor. getDerivedGauge()Deprecated. 
 As of JMX 1.2, replaced by
  CounterMonitor.getDerivedGauge(ObjectName) | 
| Number | GaugeMonitorMBean. getDerivedGauge(ObjectName object)Gets the derived gauge for the specified MBean. | 
| Number | GaugeMonitor. getDerivedGauge(ObjectName object)Gets the derived gauge of the specified object, if this object is
 contained in the set of observed MBeans, or  nullotherwise. | 
| Number | CounterMonitorMBean. getDerivedGauge(ObjectName object)Gets the derived gauge for the specified MBean. | 
| Number | CounterMonitor. getDerivedGauge(ObjectName object)Gets the derived gauge of the specified object, if this object is
 contained in the set of observed MBeans, or  nullotherwise. | 
| Number | GaugeMonitorMBean. getHighThreshold()Gets the high threshold value. | 
| Number | GaugeMonitor. getHighThreshold()Gets the high threshold value common to all observed MBeans. | 
| Number | CounterMonitorMBean. getInitThreshold()Gets the initial threshold value common to all observed objects. | 
| Number | CounterMonitor. getInitThreshold()Gets the initial threshold value common to all observed objects. | 
| Number | GaugeMonitorMBean. getLowThreshold()Gets the low threshold value. | 
| Number | GaugeMonitor. getLowThreshold()Gets the low threshold value common to all observed MBeans. | 
| Number | CounterMonitorMBean. getModulus()Gets the modulus value. | 
| Number | CounterMonitor. getModulus()Gets the modulus value common to all observed MBeans. | 
| Number | CounterMonitorMBean. getOffset()Gets the offset value. | 
| Number | CounterMonitor. getOffset()Gets the offset value common to all observed MBeans. | 
| Number | CounterMonitorMBean. getThreshold()Deprecated. 
 As of JMX 1.2, replaced by  CounterMonitorMBean.getThreshold(ObjectName) | 
| Number | CounterMonitor. getThreshold()Deprecated. 
 As of JMX 1.2, replaced by  CounterMonitor.getThreshold(ObjectName) | 
| Number | CounterMonitorMBean. getThreshold(ObjectName object)Gets the threshold value for the specified MBean. | 
| Number | CounterMonitor. getThreshold(ObjectName object)Gets the current threshold value of the specified object, if
 this object is contained in the set of observed MBeans, or
  nullotherwise. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | CounterMonitorMBean. setInitThreshold(Number value)Sets the initial threshold value common to all observed MBeans. | 
| void | CounterMonitor. setInitThreshold(Number value)Sets the initial threshold value common to all observed objects. | 
| void | CounterMonitorMBean. setModulus(Number value)Sets the modulus value. | 
| void | CounterMonitor. setModulus(Number value)Sets the modulus value common to all observed MBeans. | 
| void | CounterMonitorMBean. setOffset(Number value)Sets the offset value. | 
| void | CounterMonitor. setOffset(Number value)Sets the offset value common to all observed MBeans. | 
| void | CounterMonitorMBean. setThreshold(Number value)Deprecated. 
 As of JMX 1.2, replaced by  CounterMonitorMBean.setInitThreshold(java.lang.Number) | 
| void | CounterMonitor. setThreshold(Number value)Deprecated. 
 As of JMX 1.2, replaced by  CounterMonitor.setInitThreshold(java.lang.Number) | 
| void | GaugeMonitorMBean. setThresholds(Number highValue,
             Number lowValue)Sets the high and the low threshold values. | 
| void | GaugeMonitor. setThresholds(Number highValue,
             Number lowValue)Sets the high and the low threshold values common to all
 observed MBeans. | 
| Modifier and Type | Method and Description | 
|---|---|
| Number | JSplitPane.AccessibleJSplitPane. getCurrentAccessibleValue()Gets the accessible value of this object. | 
| Number | JSlider.AccessibleJSlider. getCurrentAccessibleValue()Get the accessible value of this object. | 
| Number | JProgressBar.AccessibleJProgressBar. getCurrentAccessibleValue()Gets the accessible value of this object. | 
| Number | JSpinner.AccessibleJSpinner. getCurrentAccessibleValue()Get the value of this object as a Number. | 
| Number | JScrollBar.AccessibleJScrollBar. getCurrentAccessibleValue()Get the accessible value of this object. | 
| Number | AbstractButton.AccessibleAbstractButton. getCurrentAccessibleValue()Get the value of this object as a Number. | 
| Number | JInternalFrame.AccessibleJInternalFrame. getCurrentAccessibleValue()Get the value of this object as a Number. | 
| Number | JInternalFrame.JDesktopIcon.AccessibleJDesktopIcon. getCurrentAccessibleValue()Gets the value of this object as a  Number. | 
| Number | JSplitPane.AccessibleJSplitPane. getMaximumAccessibleValue()Gets the maximum accessible value of this object. | 
| Number | JSlider.AccessibleJSlider. getMaximumAccessibleValue()Get the maximum accessible value of this object. | 
| Number | JProgressBar.AccessibleJProgressBar. getMaximumAccessibleValue()Gets the maximum accessible value of this object. | 
| Number | JSpinner.AccessibleJSpinner. getMaximumAccessibleValue()Get the maximum value of this object as a Number. | 
| Number | JScrollBar.AccessibleJScrollBar. getMaximumAccessibleValue()Get the maximum accessible value of this object. | 
| Number | AbstractButton.AccessibleAbstractButton. getMaximumAccessibleValue()Get the maximum value of this object as a Number. | 
| Number | JInternalFrame.AccessibleJInternalFrame. getMaximumAccessibleValue()Get the maximum value of this object as a Number. | 
| Number | JInternalFrame.JDesktopIcon.AccessibleJDesktopIcon. getMaximumAccessibleValue()Gets the maximum value of this object as a  Number. | 
| Number | JSplitPane.AccessibleJSplitPane. getMinimumAccessibleValue()Gets the minimum accessible value of this object. | 
| Number | JSlider.AccessibleJSlider. getMinimumAccessibleValue()Get the minimum accessible value of this object. | 
| Number | JProgressBar.AccessibleJProgressBar. getMinimumAccessibleValue()Gets the minimum accessible value of this object. | 
| Number | JSpinner.AccessibleJSpinner. getMinimumAccessibleValue()Get the minimum value of this object as a Number. | 
| Number | JScrollBar.AccessibleJScrollBar. getMinimumAccessibleValue()Get the minimum accessible value of this object. | 
| Number | AbstractButton.AccessibleAbstractButton. getMinimumAccessibleValue()Get the minimum value of this object as a Number. | 
| Number | JInternalFrame.AccessibleJInternalFrame. getMinimumAccessibleValue()Get the minimum value of this object as a Number. | 
| Number | JInternalFrame.JDesktopIcon.AccessibleJDesktopIcon. getMinimumAccessibleValue()Gets the minimum value of this object as a  Number. | 
| Number | SpinnerNumberModel. getNumber()Returns the value of the current element of the sequence. | 
| Number | SpinnerNumberModel. getStepSize()Returns the size of the value change computed by the
  getNextValueandgetPreviousValuemethods. | 
| Modifier and Type | Method and Description | 
|---|---|
| static <M,I> RowFilter<M,I> | RowFilter. numberFilter(RowFilter.ComparisonType type,
            Number number,
            int... indices)Returns a  RowFilterthat includes entries that
 have at least oneNumbervalue meeting the
 specified criteria. | 
| boolean | JSplitPane.AccessibleJSplitPane. setCurrentAccessibleValue(Number n)Sets the value of this object as a Number. | 
| boolean | JSlider.AccessibleJSlider. setCurrentAccessibleValue(Number n)Set the value of this object as a Number. | 
| boolean | JProgressBar.AccessibleJProgressBar. setCurrentAccessibleValue(Number n)Sets the value of this object as a  Number. | 
| boolean | JSpinner.AccessibleJSpinner. setCurrentAccessibleValue(Number n)Set the value of this object as a Number. | 
| boolean | JScrollBar.AccessibleJScrollBar. setCurrentAccessibleValue(Number n)Set the value of this object as a Number. | 
| boolean | AbstractButton.AccessibleAbstractButton. setCurrentAccessibleValue(Number n)Set the value of this object as a Number. | 
| boolean | JInternalFrame.AccessibleJInternalFrame. setCurrentAccessibleValue(Number n)Set the value of this object as a Number. | 
| boolean | JInternalFrame.JDesktopIcon.AccessibleJDesktopIcon. setCurrentAccessibleValue(Number n)Sets the value of this object as a  Number. | 
| void | SpinnerNumberModel. setStepSize(Number stepSize)Changes the size of the value change computed by the
  getNextValueandgetPreviousValuemethods. | 
| Constructor and Description | 
|---|
| SpinnerNumberModel(Number value,
                  Comparable minimum,
                  Comparable maximum,
                  Number stepSize)Constructs a  SpinnerModelthat represents
 a closed sequence of
 numbers fromminimumtomaximum. | 
| Modifier and Type | Method and Description | 
|---|---|
| abstract Number | Duration. getField(DatatypeConstants.Field field)Gets the value of a field. | 
 Submit a bug or feature 
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
 Copyright © 1993, 2025, Oracle and/or its affiliates.  All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.