public interface ObservableNumberValue extends ObservableValue<Number>
ObservableValue
that wrap
a number.ObservableValue
,
ObservableDoubleValue
,
ObservableFloatValue
,
ObservableIntegerValue
,
ObservableLongValue
Modifier and Type | Method and Description |
---|---|
double |
doubleValue()
Returns the value of this
ObservableNumberValue as a
double . |
float |
floatValue()
Returns the value of this
ObservableNumberValue as a
float . |
int |
intValue()
Returns the value of this
ObservableNumberValue as an int
. |
long |
longValue()
Returns the value of this
ObservableNumberValue as a long
. |
addListener, getValue, removeListener
addListener, removeListener
int intValue()
ObservableNumberValue
as an int
. If the value is not an int
, a standard cast is performed.ObservableNumberValue
as an int
long longValue()
ObservableNumberValue
as a long
. If the value is not a long
, a standard cast is performed.ObservableNumberValue
as a long
float floatValue()
ObservableNumberValue
as a
float
. If the value is not a float
, a standard cast is
performed.ObservableNumberValue
as a
float
double doubleValue()
ObservableNumberValue
as a
double
. If the value is not a double
, a standard cast is
performed.ObservableNumberValue
as a
double
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 © 2008, 2017, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.