Uses of Class
java.lang.Number
Package
Description
Contains all of the classes for creating user interfaces and for painting
graphics and images.
Provides classes that are fundamental to the design of the Java
programming language.
Provides classes for performing arbitrary-precision integer
arithmetic (
BigInteger
) and arbitrary-precision decimal
arithmetic (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-safe
programming on single variables.
Defines a contract between user-interface components and an assistive
technology 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) components
that, to the maximum degree possible, work the same on all platforms.
Defines XML/Java Type Mappings.
-
Uses of Number in java.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 TypeMethodDescriptionboolean
Button.AccessibleAWTButton.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
CheckboxMenuItem.AccessibleAWTCheckboxMenuItem.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.boolean
Scrollbar.AccessibleAWTScrollBar.setCurrentAccessibleValue(Number n)
Set the value of this object as a Number. -
Uses of Number in java.lang
Modifier and TypeClassDescriptionclass
TheByte
class wraps a value of primitive typebyte
in an object.class
TheDouble
class wraps a value of the primitive typedouble
in an object.class
TheFloat
class wraps a value of primitive typefloat
in an object.class
TheInteger
class wraps a value of the primitive typeint
in an object.class
TheLong
class wraps a value of the primitive typelong
in an object.class
TheShort
class wraps a value of primitive typeshort
in an object. -
Uses of Number in java.math
Modifier and TypeClassDescriptionclass
Immutable, arbitrary-precision signed decimal numbers.class
Immutable arbitrary-precision integers. -
Uses of Number in java.text
Modifier and TypeMethodDescriptionChoiceFormat.parse(String text, ParsePosition status)
Parses a Number from the input text.CompactNumberFormat.parse(String text, ParsePosition pos)
Parses a compact number from a string to produce aNumber
.DecimalFormat.parse(String text, ParsePosition pos)
Parses text from a string to produce aNumber
.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. -
Uses of Number in java.util.concurrent.atomic
Modifier and TypeClassDescriptionclass
Anint
value that may be updated atomically.class
Along
value that may be updated atomically.class
One or more variables that together maintain a runningdouble
value updated using a supplied function.class
One or more variables that together maintain an initially zerodouble
sum.class
One or more variables that together maintain a runninglong
value updated using a supplied function.class
One or more variables that together maintain an initially zerolong
sum. -
Uses of Number in javax.accessibility
Modifier 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
.Modifier and TypeMethodDescriptionboolean
AccessibleValue.setCurrentAccessibleValue(Number n)
Set the value of this object as aNumber
. -
Uses of Number in javax.management
-
Uses of Number in javax.management.monitor
Modifier and TypeMethodDescriptionCounterMonitor.getDerivedGauge()
Deprecated.CounterMonitor.getDerivedGauge(ObjectName object)
Gets the derived gauge of the specified object, if this object is contained in the set of observed MBeans, ornull
otherwise.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 is contained in the set of observed MBeans, ornull
otherwise.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, if this object is contained in the set of observed MBeans, ornull
otherwise.CounterMonitorMBean.getThreshold()
Deprecated.As of JMX 1.2, replaced byCounterMonitorMBean.getThreshold(ObjectName)
CounterMonitorMBean.getThreshold(ObjectName object)
Gets the threshold value for the specified MBean.Modifier and TypeMethodDescriptionvoid
CounterMonitor.setInitThreshold(Number value)
Sets the initial threshold value common to all observed objects.void
CounterMonitorMBean.setInitThreshold(Number value)
Sets the initial threshold value common to all observed MBeans.void
CounterMonitor.setModulus(Number value)
Sets the modulus value common to all observed MBeans.void
CounterMonitorMBean.setModulus(Number value)
Sets the modulus value.void
Sets the offset value common to all observed MBeans.void
Sets the offset value.void
CounterMonitor.setThreshold(Number value)
Deprecated.As of JMX 1.2, replaced byCounterMonitor.setInitThreshold(java.lang.Number)
void
CounterMonitorMBean.setThreshold(Number value)
Deprecated.As of JMX 1.2, replaced byCounterMonitorMBean.setInitThreshold(java.lang.Number)
void
GaugeMonitor.setThresholds(Number highValue, Number lowValue)
Sets the high and the low threshold values common to all observed MBeans.void
GaugeMonitorMBean.setThresholds(Number highValue, Number lowValue)
Sets the high and the low threshold values. -
Uses of Number in javax.swing
Modifier 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 thegetNextValue
andgetPreviousValue
methods.Modifier and TypeMethodDescriptionstatic <M, I> RowFilter<M,I>
RowFilter.numberFilter(RowFilter.ComparisonType type, Number number, int... indices)
Returns aRowFilter
that includes entries that have at least oneNumber
value meeting the specified criteria.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 aNumber
.boolean
JProgressBar.AccessibleJProgressBar.setCurrentAccessibleValue(Number n)
Sets the value of this object as aNumber
.boolean
JScrollBar.AccessibleJScrollBar.setCurrentAccessibleValue(Number n)
Set the value of this object as a Number.boolean
JSlider.AccessibleJSlider.setCurrentAccessibleValue(Number n)
Set the value of this object as a Number.boolean
JSpinner.AccessibleJSpinner.setCurrentAccessibleValue(Number n)
Set the value of this object as a Number.boolean
JSplitPane.AccessibleJSplitPane.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 thegetNextValue
andgetPreviousValue
methods.ModifierConstructorDescriptionSpinnerNumberModel(Number value, Comparable<?> minimum, Comparable<?> maximum, Number stepSize)
Constructs aSpinnerModel
that represents a closed sequence of numbers fromminimum
tomaximum
. -
Uses of Number in javax.xml.datatype
Modifier and TypeMethodDescriptionabstract Number
Duration.getField(DatatypeConstants.Field field)
Gets the value of a field.
CounterMonitor.getDerivedGauge(ObjectName)