Uses of Class
java.lang.Number
Packages that useNumber
Package
Description
Contains all of the classes for creating user interfaces and for paintinggraphics and images.
Provides classes that are fundamental to the design of the Javaprogramming language.
Provides classes for performing arbitrary-precision integerarithmetic (
BigInteger) and arbitrary-precision decimalarithmetic (BigDecimal).Provides classes and interfaces for handling text, dates, numbers,and messages in a manner independent of natural languages.
A small toolkit of classes that support lock-free thread-safeprogramming on single variables.
Defines a contract between user-interface components and an assistivetechnology that provides access to those components.
Provides the core classes for the Java Management Extensions.
Provides the definition of the monitor classes.
Provides a set of "lightweight" (all-Java language) componentsthat, to the maximum degree possible, work the same on all platforms.
Defines XML/Java Type Mappings.
Incubating Feature. Will be removed in a future release.
Uses ofNumber injava.awt
Modifier and TypeMethodDescriptionButton.AccessibleAWTButton.getCurrentAccessibleValue()Get the value of this object as a Number.Checkbox.AccessibleAWTCheckbox.getCurrentAccessibleValue()Get the value of this object as a Number.CheckboxMenuItem.AccessibleAWTCheckboxMenuItem.getCurrentAccessibleValue()Get the value of this object as a Number.MenuItem.AccessibleAWTMenuItem.getCurrentAccessibleValue()Get the value of this object as a Number.Scrollbar.AccessibleAWTScrollBar.getCurrentAccessibleValue()Get the accessible value of this object.Button.AccessibleAWTButton.getMaximumAccessibleValue()Get the maximum value of this object as a Number.Checkbox.AccessibleAWTCheckbox.getMaximumAccessibleValue()Get the maximum value of this object as a Number.CheckboxMenuItem.AccessibleAWTCheckboxMenuItem.getMaximumAccessibleValue()Get the maximum value of this object as a Number.MenuItem.AccessibleAWTMenuItem.getMaximumAccessibleValue()Get the maximum value of this object as a Number.Scrollbar.AccessibleAWTScrollBar.getMaximumAccessibleValue()Get the maximum accessible value of this object.Button.AccessibleAWTButton.getMinimumAccessibleValue()Get the minimum value of this object as a Number.Checkbox.AccessibleAWTCheckbox.getMinimumAccessibleValue()Get the minimum value of this object as a Number.CheckboxMenuItem.AccessibleAWTCheckboxMenuItem.getMinimumAccessibleValue()Get the minimum value of this object as a Number.MenuItem.AccessibleAWTMenuItem.getMinimumAccessibleValue()Get the minimum value of this object as a Number.Scrollbar.AccessibleAWTScrollBar.getMinimumAccessibleValue()Get the minimum accessible value of this object.Modifier and TypeMethodDescriptionbooleanButton.AccessibleAWTButton.setCurrentAccessibleValue(Number n) Set the value of this object as a Number.booleanCheckbox.AccessibleAWTCheckbox.setCurrentAccessibleValue(Number n) Set the value of this object as a Number.booleanCheckboxMenuItem.AccessibleAWTCheckboxMenuItem.setCurrentAccessibleValue(Number n) Set the value of this object as a Number.booleanMenuItem.AccessibleAWTMenuItem.setCurrentAccessibleValue(Number n) Set the value of this object as a Number.booleanScrollbar.AccessibleAWTScrollBar.setCurrentAccessibleValue(Number n) Set the value of this object as a Number.Uses ofNumber injava.lang
Modifier and TypeClassDescriptionfinal classfinal classfinal classfinal classfinal classfinal classUses ofNumber injava.math
Modifier and TypeClassDescriptionclassImmutable, arbitrary-precision signed decimal numbers.classImmutable arbitrary-precision integers.Uses ofNumber injava.text
Modifier and TypeMethodDescriptionChoiceFormat.parse(String text,ParsePosition status) Parses the input text starting at the index given by theParsePositionas aDouble.CompactNumberFormat.parse(String text,ParsePosition pos) Parses text from the beginning of the given string to produce aNumber.DecimalFormat.parse(String text,ParsePosition pos) Parses text from the beginning of the given string to produce aNumber.Parses text from the beginning of the given string to produce aNumber.abstractNumberNumberFormat.parse(String source,ParsePosition parsePosition) Parses text from the beginning of the given string to produce aNumber.Uses ofNumber injava.util.concurrent.atomic
Subclasses ofNumber injava.util.concurrent.atomicModifier and TypeClassDescriptionclassAnintvalue that may be updated atomically.classAlongvalue that may be updated atomically.classOne or more variables that together maintain a runningdoublevalue updated using a supplied function.classOne or more variables that together maintain an initially zerodoublesum.classOne or more variables that together maintain a runninglongvalue updated using a supplied function.classOne or more variables that together maintain an initially zerolongsum.Uses ofNumber injavax.accessibility
Methods injavax.accessibility that returnNumberModifier and TypeMethodDescriptionAccessibleValue.getCurrentAccessibleValue()Get the value of this object as aNumber.AccessibleValue.getMaximumAccessibleValue()Get the maximum value of this object as aNumber.AccessibleValue.getMinimumAccessibleValue()Get the minimum value of this object as aNumber.Methods injavax.accessibility with parameters of typeNumberModifier and TypeMethodDescriptionbooleanAccessibleValue.setCurrentAccessibleValue(Number n) Set the value of this object as aNumber.Uses ofNumber injavax.management
Methods injavax.management with parameters of typeNumberUses ofNumber injavax.management.monitor
Methods injavax.management.monitor that returnNumberModifier and TypeMethodDescriptionCounterMonitor.getDerivedGauge()Deprecated.As of JMX 1.2, replaced byCounterMonitor.getDerivedGauge(ObjectName)CounterMonitor.getDerivedGauge(ObjectName object) Gets the derived gauge of the specified object, if this object iscontained in the set of observed MBeans, ornullotherwise.CounterMonitorMBean.getDerivedGauge()Deprecated.As of JMX 1.2, replaced byCounterMonitorMBean.getDerivedGauge(ObjectName)CounterMonitorMBean.getDerivedGauge(ObjectName object) Gets the derived gauge for the specified MBean.GaugeMonitor.getDerivedGauge()Deprecated.As of JMX 1.2, replaced byGaugeMonitor.getDerivedGauge(ObjectName)GaugeMonitor.getDerivedGauge(ObjectName object) Gets the derived gauge of the specified object, if this object iscontained in the set of observed MBeans, ornullotherwise.GaugeMonitorMBean.getDerivedGauge()Deprecated.As of JMX 1.2, replaced byGaugeMonitorMBean.getDerivedGauge(ObjectName)GaugeMonitorMBean.getDerivedGauge(ObjectName object) Gets the derived gauge for the specified MBean.GaugeMonitor.getHighThreshold()Gets the high threshold value common to all observed MBeans.GaugeMonitorMBean.getHighThreshold()Gets the high threshold value.CounterMonitor.getInitThreshold()Gets the initial threshold value common to all observed objects.CounterMonitorMBean.getInitThreshold()Gets the initial threshold value common to all observed objects.GaugeMonitor.getLowThreshold()Gets the low threshold value common to all observed MBeans.GaugeMonitorMBean.getLowThreshold()Gets the low threshold value.CounterMonitor.getModulus()Gets the modulus value common to all observed MBeans.CounterMonitorMBean.getModulus()Gets the modulus value.CounterMonitor.getOffset()Gets the offset value common to all observed MBeans.CounterMonitorMBean.getOffset()Gets the offset value.CounterMonitor.getThreshold()Deprecated.As of JMX 1.2, replaced byCounterMonitor.getThreshold(ObjectName)CounterMonitor.getThreshold(ObjectName object) Gets the current threshold value of the specified object, ifthis object is contained in the set of observed MBeans, ornullotherwise.CounterMonitorMBean.getThreshold()Deprecated.As of JMX 1.2, replaced byCounterMonitorMBean.getThreshold(ObjectName)CounterMonitorMBean.getThreshold(ObjectName object) Gets the threshold value for the specified MBean.Methods injavax.management.monitor with parameters of typeNumberModifier and TypeMethodDescriptionvoidCounterMonitor.setInitThreshold(Number value) Sets the initial threshold value common to all observed objects.voidCounterMonitorMBean.setInitThreshold(Number value) Sets the initial threshold value common to all observed MBeans.voidCounterMonitor.setModulus(Number value) Sets the modulus value common to all observed MBeans.voidCounterMonitorMBean.setModulus(Number value) Sets the modulus value.voidSets the offset value common to all observed MBeans.voidSets the offset value.voidCounterMonitor.setThreshold(Number value) Deprecated.As of JMX 1.2, replaced byCounterMonitor.setInitThreshold(Number)voidCounterMonitorMBean.setThreshold(Number value) Deprecated.As of JMX 1.2, replaced byCounterMonitorMBean.setInitThreshold(Number)voidGaugeMonitor.setThresholds(Number highValue,Number lowValue) Sets the high and the low threshold values common to allobserved MBeans.voidGaugeMonitorMBean.setThresholds(Number highValue,Number lowValue) Sets the high and the low threshold values.Uses ofNumber injavax.swing
Methods injavax.swing that returnNumberModifier and TypeMethodDescriptionAbstractButton.AccessibleAbstractButton.getCurrentAccessibleValue()Get the value of this object as a Number.JInternalFrame.AccessibleJInternalFrame.getCurrentAccessibleValue()Get the value of this object as a Number.JInternalFrame.JDesktopIcon.AccessibleJDesktopIcon.getCurrentAccessibleValue()Gets the value of this object as aNumber.JProgressBar.AccessibleJProgressBar.getCurrentAccessibleValue()Gets the accessible value of this object.JScrollBar.AccessibleJScrollBar.getCurrentAccessibleValue()Get the accessible value of this object.JSlider.AccessibleJSlider.getCurrentAccessibleValue()Get the accessible value of this object.JSpinner.AccessibleJSpinner.getCurrentAccessibleValue()Get the value of this object as a Number.JSplitPane.AccessibleJSplitPane.getCurrentAccessibleValue()Gets the accessible value of this object.AbstractButton.AccessibleAbstractButton.getMaximumAccessibleValue()Get the maximum value of this object as a Number.JInternalFrame.AccessibleJInternalFrame.getMaximumAccessibleValue()Get the maximum value of this object as a Number.JInternalFrame.JDesktopIcon.AccessibleJDesktopIcon.getMaximumAccessibleValue()Gets the maximum value of this object as aNumber.JProgressBar.AccessibleJProgressBar.getMaximumAccessibleValue()Gets the maximum accessible value of this object.JScrollBar.AccessibleJScrollBar.getMaximumAccessibleValue()Get the maximum accessible value of this object.JSlider.AccessibleJSlider.getMaximumAccessibleValue()Get the maximum accessible value of this object.JSpinner.AccessibleJSpinner.getMaximumAccessibleValue()Get the maximum value of this object as a Number.JSplitPane.AccessibleJSplitPane.getMaximumAccessibleValue()Gets the maximum accessible value of this object.AbstractButton.AccessibleAbstractButton.getMinimumAccessibleValue()Get the minimum value of this object as a Number.JInternalFrame.AccessibleJInternalFrame.getMinimumAccessibleValue()Get the minimum value of this object as a Number.JInternalFrame.JDesktopIcon.AccessibleJDesktopIcon.getMinimumAccessibleValue()Gets the minimum value of this object as aNumber.JProgressBar.AccessibleJProgressBar.getMinimumAccessibleValue()Gets the minimum accessible value of this object.JScrollBar.AccessibleJScrollBar.getMinimumAccessibleValue()Get the minimum accessible value of this object.JSlider.AccessibleJSlider.getMinimumAccessibleValue()Get the minimum accessible value of this object.JSpinner.AccessibleJSpinner.getMinimumAccessibleValue()Get the minimum value of this object as a Number.JSplitPane.AccessibleJSplitPane.getMinimumAccessibleValue()Gets the minimum accessible value of this object.SpinnerNumberModel.getNumber()Returns the value of the current element of the sequence.SpinnerNumberModel.getStepSize()Returns the size of the value change computed by thegetNextValueandgetPreviousValuemethods.Methods injavax.swing with parameters of typeNumberModifier and TypeMethodDescriptionstatic <M,I> RowFilter <M, I> RowFilter.numberFilter(RowFilter.ComparisonType type,Number number, int... indices) Returns aRowFilterthat includes entries thathave at least oneNumbervalue meeting thespecified criteria.booleanAbstractButton.AccessibleAbstractButton.setCurrentAccessibleValue(Number n) Set the value of this object as a Number.booleanJInternalFrame.AccessibleJInternalFrame.setCurrentAccessibleValue(Number n) Set the value of this object as a Number.booleanJInternalFrame.JDesktopIcon.AccessibleJDesktopIcon.setCurrentAccessibleValue(Number n) Sets the value of this object as aNumber.booleanJProgressBar.AccessibleJProgressBar.setCurrentAccessibleValue(Number n) Sets the value of this object as aNumber.booleanJScrollBar.AccessibleJScrollBar.setCurrentAccessibleValue(Number n) Set the value of this object as a Number.booleanJSlider.AccessibleJSlider.setCurrentAccessibleValue(Number n) Set the value of this object as a Number.booleanJSpinner.AccessibleJSpinner.setCurrentAccessibleValue(Number n) Set the value of this object as a Number.booleanJSplitPane.AccessibleJSplitPane.setCurrentAccessibleValue(Number n) Sets the value of this object as a Number.voidSpinnerNumberModel.setStepSize(Number stepSize) Changes the size of the value change computed by thegetNextValueandgetPreviousValuemethods.Constructors injavax.swing with parameters of typeNumberModifierConstructorDescriptionSpinnerNumberModel(Number value,Comparable<?> minimum,Comparable<?> maximum,Number stepSize) Constructs aSpinnerModelthat representsa closed sequence ofnumbers fromminimumtomaximum.Uses ofNumber injavax.xml.datatype
Methods injavax.xml.datatype that returnNumberModifier and TypeMethodDescriptionabstractNumberDuration.getField(DatatypeConstants.Field field) Gets the value of a field.Uses ofNumber injdk.incubator.vector
Subclasses ofNumber injdk.incubator.vectorModifier and TypeClassDescriptionfinal classTheFloat16is a class holding 16-bit datain IEEE 754 binary16 format.