Spec-Zone .ru
спецификации, руководства, описания, API
|
public abstract class FloatExpression extends NumberExpressionBase implements ObservableFloatValue
FloatExpression
is a
ObservableFloatValue
plus additional convenience
methods to generate bindings in a fluent style.
A concrete sub-class of FloatExpression
has to implement the method
ObservableFloatValue.get()
, which provides the
actual value of this expression.
Constructor and Description |
---|
FloatExpression() |
Modifier and Type | Method and Description |
---|---|
DoubleBinding |
add(double other)
Creates a new
NumberBinding that calculates
the sum of this NumberExpression and a constant value. |
FloatBinding |
add(float other)
Creates a new
NumberBinding that calculates
the sum of this NumberExpression and a constant value. |
FloatBinding |
add(int other)
Creates a new
NumberBinding that calculates
the sum of this NumberExpression and a constant value. |
FloatBinding |
add(long other)
Creates a new
NumberBinding that calculates
the sum of this NumberExpression and a constant value. |
DoubleBinding |
divide(double other)
Creates a new
NumberBinding that calculates
the division of this NumberExpression and a constant value. |
FloatBinding |
divide(float other)
Creates a new
NumberBinding that calculates
the division of this NumberExpression and a constant value. |
FloatBinding |
divide(int other)
Creates a new
NumberBinding that calculates
the division of this NumberExpression and a constant value. |
FloatBinding |
divide(long other)
Creates a new
NumberBinding that calculates
the division of this NumberExpression and a constant value. |
double |
doubleValue()
Returns the value of this
ObservableNumberValue as a
double . |
static FloatExpression |
floatExpression(ObservableFloatValue value)
Returns a
FloatExpression that wraps a
ObservableFloatValue . |
float |
floatValue()
Returns the value of this
ObservableNumberValue as a
float . |
java.lang.Float |
getValue()
Returns the current value of this
ObservableValue |
int |
intValue()
Returns the value of this
ObservableNumberValue as an int
. |
long |
longValue()
Returns the value of this
ObservableNumberValue as a long
. |
DoubleBinding |
multiply(double other)
Creates a new
NumberBinding that calculates
the product of this NumberExpression and a constant value. |
FloatBinding |
multiply(float other)
Creates a new
NumberBinding that calculates
the product of this NumberExpression and a constant value. |
FloatBinding |
multiply(int other)
Creates a new
NumberBinding that calculates
the product of this NumberExpression and a constant value. |
FloatBinding |
multiply(long other)
Creates a new
NumberBinding that calculates
the product of this NumberExpression and a constant value. |
FloatBinding |
negate()
Creates a new
NumberBinding that calculates
the negation of NumberExpression . |
DoubleBinding |
subtract(double other)
Creates a new
NumberBinding that calculates
the difference of this NumberExpression and a constant value. |
FloatBinding |
subtract(float other)
Creates a new
NumberBinding that calculates
the difference of this NumberExpression and a constant value. |
FloatBinding |
subtract(int other)
Creates a new
NumberBinding that calculates
the difference of this NumberExpression and a constant value. |
FloatBinding |
subtract(long other)
Creates a new
NumberBinding that calculates
the difference of this NumberExpression and a constant value. |
add, asString, asString, asString, divide, greaterThan, greaterThan, greaterThan, greaterThan, greaterThan, greaterThanOrEqualTo, greaterThanOrEqualTo, greaterThanOrEqualTo, greaterThanOrEqualTo, greaterThanOrEqualTo, isEqualTo, isEqualTo, isEqualTo, isEqualTo, isEqualTo, isEqualTo, isEqualTo, isEqualTo, isNotEqualTo, isNotEqualTo, isNotEqualTo, isNotEqualTo, isNotEqualTo, isNotEqualTo, isNotEqualTo, isNotEqualTo, lessThan, lessThan, lessThan, lessThan, lessThan, lessThanOrEqualTo, lessThanOrEqualTo, lessThanOrEqualTo, lessThanOrEqualTo, lessThanOrEqualTo, multiply, numberExpression, subtract
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
get
addListener, removeListener
addListener, removeListener
public int intValue()
ObservableNumberValue
ObservableNumberValue
as an int
. If the value is not an int
, a standard cast is performed.intValue
in interface ObservableNumberValue
ObservableNumberValue
as an int
public long longValue()
ObservableNumberValue
ObservableNumberValue
as a long
. If the value is not a long
, a standard cast is performed.longValue
in interface ObservableNumberValue
ObservableNumberValue
as a long
public float floatValue()
ObservableNumberValue
ObservableNumberValue
as a
float
. If the value is not a float
, a standard cast is
performed.floatValue
in interface ObservableNumberValue
ObservableNumberValue
as a
float
public double doubleValue()
ObservableNumberValue
ObservableNumberValue
as a
double
. If the value is not a double
, a standard cast is
performed.doubleValue
in interface ObservableNumberValue
ObservableNumberValue
as a
double
public java.lang.Float getValue()
ObservableValue
ObservableValue
getValue
in interface ObservableValue<java.lang.Number>
public static FloatExpression floatExpression(ObservableFloatValue value)
FloatExpression
that wraps a
ObservableFloatValue
. If the
ObservableFloatValue
is already a FloatExpression
, it
will be returned. Otherwise a new
FloatBinding
is created that is bound to the
ObservableFloatValue
.value
- The source ObservableFloatValue
FloatExpression
that wraps the
ObservableFloatValue
if necessaryjava.lang.NullPointerException
- if value
is null
public FloatBinding negate()
NumberExpression
NumberBinding
that calculates
the negation of NumberExpression
.negate
in interface NumberExpression
NumberBinding
public DoubleBinding add(double other)
NumberExpression
NumberBinding
that calculates
the sum of this NumberExpression
and a constant value.add
in interface NumberExpression
other
- the constant valueNumberBinding
public FloatBinding add(float other)
NumberExpression
NumberBinding
that calculates
the sum of this NumberExpression
and a constant value.add
in interface NumberExpression
other
- the constant valueNumberBinding
public FloatBinding add(long other)
NumberExpression
NumberBinding
that calculates
the sum of this NumberExpression
and a constant value.add
in interface NumberExpression
other
- the constant valueNumberBinding
public FloatBinding add(int other)
NumberExpression
NumberBinding
that calculates
the sum of this NumberExpression
and a constant value.add
in interface NumberExpression
other
- the constant valueNumberBinding
public DoubleBinding subtract(double other)
NumberExpression
NumberBinding
that calculates
the difference of this NumberExpression
and a constant value.subtract
in interface NumberExpression
other
- the constant valueNumberBinding
public FloatBinding subtract(float other)
NumberExpression
NumberBinding
that calculates
the difference of this NumberExpression
and a constant value.subtract
in interface NumberExpression
other
- the constant valueNumberBinding
public FloatBinding subtract(long other)
NumberExpression
NumberBinding
that calculates
the difference of this NumberExpression
and a constant value.subtract
in interface NumberExpression
other
- the constant valueNumberBinding
public FloatBinding subtract(int other)
NumberExpression
NumberBinding
that calculates
the difference of this NumberExpression
and a constant value.subtract
in interface NumberExpression
other
- the constant valueNumberBinding
public DoubleBinding multiply(double other)
NumberExpression
NumberBinding
that calculates
the product of this NumberExpression
and a constant value.multiply
in interface NumberExpression
other
- the constant valueNumberBinding
public FloatBinding multiply(float other)
NumberExpression
NumberBinding
that calculates
the product of this NumberExpression
and a constant value.multiply
in interface NumberExpression
other
- the constant valueNumberBinding
public FloatBinding multiply(long other)
NumberExpression
NumberBinding
that calculates
the product of this NumberExpression
and a constant value.multiply
in interface NumberExpression
other
- the constant valueNumberBinding
public FloatBinding multiply(int other)
NumberExpression
NumberBinding
that calculates
the product of this NumberExpression
and a constant value.multiply
in interface NumberExpression
other
- the constant valueNumberBinding
public DoubleBinding divide(double other)
NumberExpression
NumberBinding
that calculates
the division of this NumberExpression
and a constant value.divide
in interface NumberExpression
other
- the constant valueNumberBinding
public FloatBinding divide(float other)
NumberExpression
NumberBinding
that calculates
the division of this NumberExpression
and a constant value.divide
in interface NumberExpression
other
- the constant valueNumberBinding
public FloatBinding divide(long other)
NumberExpression
NumberBinding
that calculates
the division of this NumberExpression
and a constant value.divide
in interface NumberExpression
other
- the constant valueNumberBinding
public FloatBinding divide(int other)
NumberExpression
NumberBinding
that calculates
the division of this NumberExpression
and a constant value.divide
in interface NumberExpression
other
- the constant valueNumberBinding
Copyright (c) 2008, 2012, Oracle and/or its affiliates. All rights reserved. Use is subject to