Class LongExpression
java.lang.Object
javafx.beans.binding.NumberExpressionBase
javafx.beans.binding.LongExpression
- All Implemented Interfaces:
NumberExpression
,Observable
,ObservableLongValue
,ObservableNumberValue
,ObservableValue<Number>
- Direct Known Subclasses:
LongBinding
,ReadOnlyLongProperty
LongExpression
is an ObservableLongValue
plus additional convenience methods to generate bindings in a fluent style.
A concrete sub-class of LongExpression
has to implement the method
ObservableLongValue.get()
, which provides the
actual value of this expression.
- Since:
- JavaFX 2.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionadd
(double other) Creates a newNumberBinding
that calculates the sum of thisNumberExpression
and a constant value.add
(float other) Creates a newNumberBinding
that calculates the sum of thisNumberExpression
and a constant value.add
(int other) Creates a newNumberBinding
that calculates the sum of thisNumberExpression
and a constant value.add
(long other) Creates a newNumberBinding
that calculates the sum of thisNumberExpression
and a constant value.asObject()
Creates anObjectExpression
that holds the value of thisLongExpression
.divide
(double other) Creates a newNumberBinding
that calculates the division of thisNumberExpression
and a constant value.divide
(float other) Creates a newNumberBinding
that calculates the division of thisNumberExpression
and a constant value.divide
(int other) Creates a newNumberBinding
that calculates the division of thisNumberExpression
and a constant value.divide
(long other) Creates a newNumberBinding
that calculates the division of thisNumberExpression
and a constant value.double
Returns the value of thisObservableNumberValue
as adouble
.float
Returns the value of thisObservableNumberValue
as afloat
.getValue()
Returns the current value of thisObservableValue
int
intValue()
Returns the value of thisObservableNumberValue
as anint
.static LongExpression
Returns aLongExpression
that wraps aObservableLongValue
.static <T extends Number>
LongExpressionlongExpression
(ObservableValue<T> value) Returns aLongExpression
that wraps anObservableValue
.long
Returns the value of thisObservableNumberValue
as along
.