Spec-Zone .ru
спецификации, руководства, описания, API
|
public final class Bindings
extends java.lang.Object
Usually there are two possibilities to define the same operation: the Fluent
API and the the factory methods in this class. This allows a developer to
define complex expression in a way that is most easy to understand. For
instance the expression result = a*b + c*d
can be defined using only
the Fluent API:
DoubleBinding result = a.multiply(b).add(c.multiply(d));
Or using only factory methods in Bindings:
NumberBinding result = add (multiply(a, b), multiply(c,d));
Or mixing both possibilities:
NumberBinding result = add (a.multiply(b), c.multiply(d));
The main difference between using the Fluent API and using the factory
methods in this class is that the Fluent API requires that at least one of
the operands is an Expression (see javafx.beans.binding
). (Every
Expression contains a static method that generates an Expression from an
ObservableValue
.)
Also if you watched closely, you might have noticed that the return type of
the Fluent API is different in the examples above. In a lot of cases the
Fluent API allows to be more specific about the returned type (see
NumberExpression
for more details about implicit
casting.
Binding
,
NumberBinding
Modifier and Type | Method and Description |
---|---|
static DoubleBinding |
add(double op1,
ObservableNumberValue op2)
Creates a new
DoubleBinding that calculates
the sum of the value of a
ObservableNumberValue and a constant value. |
static NumberBinding |
add(float op1,
ObservableNumberValue op2)
Creates a new
NumberBinding that calculates
the sum of the value of a
ObservableNumberValue and a constant value. |
static NumberBinding |
add(int op1,
ObservableNumberValue op2)
Creates a new
NumberBinding that calculates
the sum of the value of a
ObservableNumberValue and a constant value. |
static NumberBinding |
add(long op1,
ObservableNumberValue op2)
Creates a new
NumberBinding that calculates
the sum of the value of a
ObservableNumberValue and a constant value. |
static DoubleBinding |
add(ObservableNumberValue op1,
double op2)
Creates a new
DoubleBinding that calculates
the sum of the value of a
ObservableNumberValue and a constant value. |
static NumberBinding |
add(ObservableNumberValue op1,
float op2)
Creates a new
NumberBinding that calculates
the sum of the value of a
ObservableNumberValue and a constant value. |
static NumberBinding |
add(ObservableNumberValue op1,
int op2)
Creates a new
NumberBinding that calculates
the sum of the value of a
ObservableNumberValue and a constant value. |
static NumberBinding |
add(ObservableNumberValue op1,
long op2)
Creates a new
NumberBinding that calculates
the sum of the value of a
ObservableNumberValue and a constant value. |
static NumberBinding |
add(ObservableNumberValue op1,
ObservableNumberValue op2)
Creates a new
NumberBinding that calculates
the sum of the values of two instances of
ObservableNumberValue . |
static BooleanBinding |
and(ObservableBooleanValue op1,
ObservableBooleanValue op2)
Creates a
BooleanBinding that calculates the conditional-AND
operation on the value of two instance of
ObservableBooleanValue . |
static <T> void |
bindBidirectional(Property<T> property1,
Property<T> property2)
Generates a bidirectional binding (or "bind with inverse") between two
instances of
Property . |
static StringExpression |
concat(java.lang.Object... args)
Returns a
StringExpression that holds the
value of the concatenation of multiple Objects . |
static StringExpression |
convert(ObservableValue<?> observableValue)
Returns a
StringExpression that wraps a
ObservableValue . |
static DoubleBinding |
divide(double op1,
ObservableNumberValue op2)
Creates a new
DoubleBinding that calculates
the division of a constant value and the value of a
ObservableNumberValue . |
static NumberBinding |
divide(float op1,
ObservableNumberValue op2)
Creates a new
NumberBinding that calculates
the division of a constant value and the value of a
ObservableNumberValue . |
static NumberBinding |
divide(int op1,
ObservableNumberValue op2)
Creates a new
NumberBinding that calculates
the division of a constant value and the value of a
ObservableNumberValue . |
static NumberBinding |
divide(long op1,
ObservableNumberValue op2)
Creates a new
NumberBinding that calculates
the division of a constant value and the value of a
ObservableNumberValue . |
static DoubleBinding |
divide(ObservableNumberValue op1,
double op2)
Creates a new
DoubleBinding that calculates
the division of the value of a
ObservableNumberValue and a constant value. |
static NumberBinding |
divide(ObservableNumberValue op1,
float op2)
Creates a new
NumberBinding that calculates
the division of the value of a
ObservableNumberValue and a constant value. |
static NumberBinding |
divide(ObservableNumberValue op1,
int op2)
Creates a new
NumberBinding that calculates
the division of the value of a
ObservableNumberValue and a constant value. |
static NumberBinding |
divide(ObservableNumberValue op1,
long op2)
Creates a new
NumberBinding that calculates
the division of the value of a
ObservableNumberValue and a constant value. |
static NumberBinding |
divide(ObservableNumberValue op1,
ObservableNumberValue op2)
Creates a new
NumberBinding that calculates
the division of the values of two instances of
ObservableNumberValue . |
static BooleanBinding |
equal(double op1,
ObservableNumberValue op2,
double epsilon)
Creates a new
BooleanBinding that holds true
if the value of a ObservableNumberValue is
equal to a constant value (with a tolerance). |
static BooleanBinding |
equal(float op1,
ObservableNumberValue op2,
double epsilon)
Creates a new
BooleanBinding that holds true
if the value of a ObservableNumberValue is
equal to a constant value (with a tolerance). |
static BooleanBinding |
equal(int op1,
ObservableNumberValue op2)
Creates a new
BooleanBinding that holds true
if the value of a ObservableNumberValue is
equal to a constant value. |
static BooleanBinding |
equal(int op1,
ObservableNumberValue op2,
double epsilon)
Creates a new
BooleanBinding that holds true
if the value of a ObservableNumberValue is
equal to a constant value (with a tolerance). |
static BooleanBinding |
equal(long op1,
ObservableNumberValue op2)
Creates a new
BooleanBinding that holds true
if the value of a ObservableNumberValue is
equal to a constant value. |
static BooleanBinding |
equal(long op1,
ObservableNumberValue op2,
double epsilon)
Creates a new
BooleanBinding that holds true
if the value of a ObservableNumberValue is
equal to a constant value (with a tolerance). |
static BooleanBinding |
equal(java.lang.Object op1,
ObservableObjectValue<?> op2)
Creates a new
BooleanBinding that holds true
if the value of an ObservableObjectValue is
equal to a constant value. |
static BooleanBinding |
equal(ObservableBooleanValue op1,
ObservableBooleanValue op2)
Creates a new
BooleanBinding that holds true if the values of two
instances of ObservableBooleanValue are equal. |
static BooleanBinding |
equal(ObservableNumberValue op1,
double op2,
double epsilon)
Creates a new
BooleanBinding that holds true
if the value of a ObservableNumberValue is
equal to a constant value (with a tolerance). |
static BooleanBinding |
equal(ObservableNumberValue op1,
float op2,
double epsilon)
Creates a new
BooleanBinding that holds true
if the value of a ObservableNumberValue is
equal to a constant value (with a tolerance). |
static BooleanBinding |
equal(ObservableNumberValue op1,
int op2)
Creates a new
BooleanBinding that holds true
if the value of a ObservableNumberValue is
equal to a constant value. |
static BooleanBinding |
equal(ObservableNumberValue op1,
int op2,
double epsilon)
Creates a new
BooleanBinding that holds true
if the value of a ObservableNumberValue is
equal to a constant value (with a tolerance). |
static BooleanBinding |
equal(ObservableNumberValue op1,
long op2)
Creates a new
BooleanBinding that holds true
if the value of a ObservableNumberValue is
equal to a constant value. |
static BooleanBinding |
equal(ObservableNumberValue op1,
long op2,
double epsilon)
Creates a new
BooleanBinding that holds true
if the value of a ObservableNumberValue is
equal to a constant value (with a tolerance). |
static BooleanBinding |
equal(ObservableNumberValue op1,
ObservableNumberValue op2)
Creates a new
BooleanBinding that holds true
if the values of two instances of
ObservableNumberValue are equal. |
static BooleanBinding |
equal(ObservableNumberValue op1,
ObservableNumberValue op2,
double epsilon)
Creates a new
BooleanBinding that holds true
if the values of two instances of
ObservableNumberValue are equal (with a
tolerance). |
static BooleanBinding |
equal(ObservableObjectValue<?> op1,
java.lang.Object op2)
Creates a new
BooleanBinding that holds true
if the value of an ObservableObjectValue is
equal to a constant value. |
static BooleanBinding |
equal(ObservableObjectValue<?> op1,
ObservableObjectValue<?> op2)
Creates a new
BooleanBinding that holds true
if the values of two instances of
ObservableObjectValue are equal. |
static BooleanBinding |
equal(ObservableStringValue op1,
ObservableStringValue op2)
Creates a new
BooleanBinding that holds true
if the values of two instances of
ObservableStringValue are equal. |
static BooleanBinding |
equal(ObservableStringValue op1,
java.lang.String op2)
Creates a new
BooleanBinding that holds true
if the value of a ObservableStringValue is
equal to a constant value. |
static BooleanBinding |
equal(java.lang.String op1,
ObservableStringValue op2)
Creates a new
BooleanBinding that holds true
if the value of a ObservableStringValue is
equal to a constant value. |
static BooleanBinding |
equalIgnoreCase(ObservableStringValue op1,
ObservableStringValue op2)
Creates a new
BooleanBinding that holds true
if the values of two instances of
ObservableStringValue are equal ignoring case. |
static BooleanBinding |
equalIgnoreCase(ObservableStringValue op1,
java.lang.String op2)
Creates a new
BooleanBinding that holds true
if the value of a ObservableStringValue is
equal to a constant value ignoring case. |
static BooleanBinding |
equalIgnoreCase(java.lang.String op1,
ObservableStringValue op2)
Creates a new
BooleanBinding that holds true
if the value of a ObservableStringValue is
equal to a constant value ignoring case. |
static StringExpression |
format(java.util.Locale locale,
java.lang.String format,
java.lang.Object... args)
Creates a
StringExpression that holds the
value of multiple Objects formatted according to a format
String and a specified Locale |
static StringExpression |
format(java.lang.String format,
java.lang.Object... args)
Creates a
StringExpression that holds the
value of multiple Objects formatted according to a format
String . |
static BooleanBinding |
greaterThan(double op1,
ObservableNumberValue op2)
Creates a new
BooleanBinding that holds true
if a constant value is greater than the value of a
ObservableNumberValue . |
static BooleanBinding |
greaterThan(float op1,
ObservableNumberValue op2)
Creates a new
BooleanBinding that holds true
if a constant value is greater than the value of a
ObservableNumberValue . |
static BooleanBinding |
greaterThan(int op1,
ObservableNumberValue op2)
Creates a new
BooleanBinding that holds true
if a constant value is greater than the value of a
ObservableNumberValue . |
static BooleanBinding |
greaterThan(long op1,
ObservableNumberValue op2)
Creates a new
BooleanBinding that holds true
if a constant value is greater than the value of a
ObservableNumberValue . |
static BooleanBinding |
greaterThan(ObservableNumberValue op1,
double op2)
Creates a new
BooleanBinding that holds true
if the value of a ObservableNumberValue is
greater than a constant value. |
static BooleanBinding |
greaterThan(ObservableNumberValue op1,
float op2)
Creates a new
BooleanBinding that holds true
if the value of a ObservableNumberValue is
greater than a constant value. |
static BooleanBinding |
greaterThan(ObservableNumberValue op1,
int op2)
Creates a new
BooleanBinding that holds true
if the value of a ObservableNumberValue is
greater than a constant value. |
static BooleanBinding |
greaterThan(ObservableNumberValue op1,
long op2)
Creates a new
BooleanBinding that holds true
if the value of a ObservableNumberValue is
greater than a constant value. |
static BooleanBinding |
greaterThan(ObservableNumberValue op1,
ObservableNumberValue op2)
Creates a new
BooleanBinding that holds true
if the value of the first
ObservableNumberValue is greater than the
value of the second. |
static BooleanBinding |
greaterThan(ObservableStringValue op1,
ObservableStringValue op2)
Creates a new
BooleanBinding that holds true
if the value of the first
ObservableStringValue is greater than the
value of the second. |
static BooleanBinding |
greaterThan(ObservableStringValue op1,
java.lang.String op2)
Creates a new
BooleanBinding that holds true
if the value of a ObservableStringValue is
greater than a constant value. |
static BooleanBinding |
greaterThan(java.lang.String op1,
ObservableStringValue op2)
Creates a new
BooleanBinding that holds true
if the value of a constant value is greater than the value of a
ObservableStringValue . |
static BooleanBinding |
greaterThanOrEqual(double op1,
ObservableNumberValue op2)
Creates a new
BooleanBinding that holds true
if a constant value is greater than or equal to the value of a
ObservableNumberValue . |
static BooleanBinding |
greaterThanOrEqual(float op1,
ObservableNumberValue op2)
Creates a new
BooleanBinding that holds true
if a constant value is greater than or equal to the value of a
ObservableNumberValue . |
static BooleanBinding |
greaterThanOrEqual(int op1,
ObservableNumberValue op2)
Creates a new
BooleanBinding that holds true
if a constant value is greater than or equal to the value of a
ObservableNumberValue . |
static BooleanBinding |
greaterThanOrEqual(long op1,
ObservableNumberValue op2)
Creates a new
BooleanBinding that holds true
if a constant value is greater than or equal to the value of a
ObservableNumberValue . |
static BooleanBinding |
greaterThanOrEqual(ObservableNumberValue op1,
double op2)
Creates a new
BooleanBinding that holds true
if the value of a ObservableNumberValue is
greater than or equal to a constant value. |
static BooleanBinding |
greaterThanOrEqual(ObservableNumberValue op1,
float op2)
Creates a new
BooleanBinding that holds true
if the value of a ObservableNumberValue is
greater than or equal to a constant value. |
static BooleanBinding |
greaterThanOrEqual(ObservableNumberValue op1,
int op2)
Creates a new
BooleanBinding that holds true
if the value of a ObservableNumberValue is
greater than or equal to a constant value. |
static BooleanBinding |
greaterThanOrEqual(ObservableNumberValue op1,
long op2)
Creates a new
BooleanBinding that holds true
if the value of a ObservableNumberValue is
greater than or equal to a constant value. |
static BooleanBinding |
greaterThanOrEqual(ObservableNumberValue op1,
ObservableNumberValue op2)
Creates a new
BooleanBinding that holds true
if the value of the first
ObservableNumberValue is greater than or equal
to the value of the second. |
static BooleanBinding |
greaterThanOrEqual(ObservableStringValue op1,
ObservableStringValue op2)
Creates a new
BooleanBinding that holds true
if the value of the first
ObservableStringValue is greater than or equal
to the value of the second. |
static BooleanBinding |
greaterThanOrEqual(ObservableStringValue op1,
java.lang.String op2)
Creates a new
BooleanBinding that holds true
if the value of a ObservableStringValue is
greater than or equal to a constant value. |
static BooleanBinding |
greaterThanOrEqual(java.lang.String op1,
ObservableStringValue op2)
Creates a new
BooleanBinding that holds true
if a constant value is greater than or equal to the value of a
ObservableStringValue . |
static BooleanBinding |
isNotNull(ObservableObjectValue<?> op)
|
static BooleanBinding |
isNull(ObservableObjectValue<?> op)
|
static BooleanBinding |
lessThan(double op1,
ObservableNumberValue op2)
Creates a new
BooleanBinding that holds true
if a constant value is less than the value of a
ObservableNumberValue . |
static BooleanBinding |
lessThan(float op1,
ObservableNumberValue op2)
Creates a new
BooleanBinding that holds true
if a constant value is less than the value of a
ObservableNumberValue . |
static BooleanBinding |
lessThan(int op1,
ObservableNumberValue op2)
Creates a new
BooleanBinding that holds true
if a constant value is less than the value of a
ObservableNumberValue . |
static BooleanBinding |
lessThan(long op1,
ObservableNumberValue op2)
Creates a new
BooleanBinding that holds true
if a constant value is less than the value of a
ObservableNumberValue . |
static BooleanBinding |
lessThan(ObservableNumberValue op1,
double op2)
Creates a new
BooleanBinding that holds true
if the value of a ObservableNumberValue is
less than a constant value. |
static BooleanBinding |
lessThan(ObservableNumberValue op1,
float op2)
Creates a new
BooleanBinding that holds true
if the value of a ObservableNumberValue is
less than a constant value. |
static BooleanBinding |
lessThan(ObservableNumberValue op1,
int op2)
Creates a new
BooleanBinding that holds true
if the value of a ObservableNumberValue is
less than a constant value. |
static BooleanBinding |
lessThan(ObservableNumberValue op1,
long op2)
Creates a new
BooleanBinding that holds true
if the value of a ObservableNumberValue is
less than a constant value. |
static BooleanBinding |
lessThan(ObservableNumberValue op1,
ObservableNumberValue op2)
Creates a new
BooleanBinding that holds true
if the value of the first
ObservableNumberValue is less than the value
of the second. |
static BooleanBinding |
lessThan(ObservableStringValue op1,
ObservableStringValue op2)
Creates a new
BooleanBinding that holds true
if the value of the first
ObservableStringValue is less than the value
of the second. |
static BooleanBinding |
lessThan(ObservableStringValue op1,
java.lang.String op2)
Creates a new
BooleanBinding that holds true
if the value of a ObservableStringValue is
less than a constant value. |
static BooleanBinding |
lessThan(java.lang.String op1,
ObservableStringValue op2)
Creates a new
BooleanBinding that holds true
if a constant value is less than the value of a
ObservableStringValue . |
static BooleanBinding |
lessThanOrEqual(double op1,
ObservableNumberValue op2)
Creates a new
BooleanBinding that holds true
if a constant value is less than or equal to the value of a
ObservableNumberValue . |
static BooleanBinding |
lessThanOrEqual(float op1,
ObservableNumberValue op2)
Creates a new
BooleanBinding that holds true
if a constant value is less than or equal to the value of a
ObservableNumberValue . |
static BooleanBinding |
lessThanOrEqual(int op1,
ObservableNumberValue op2)
Creates a new
BooleanBinding that holds true
if a constant value is less than or equal to the value of a
ObservableNumberValue . |
static BooleanBinding |
lessThanOrEqual(long op1,
ObservableNumberValue op2)
Creates a new
BooleanBinding that holds true
if a constant value is less than or equal to the value of a
ObservableNumberValue . |
static BooleanBinding |
lessThanOrEqual(ObservableNumberValue op1,
double op2)
Creates a new
BooleanBinding that holds true
if the value of a ObservableNumberValue is
less than or equal to a constant value. |
static BooleanBinding |
lessThanOrEqual(ObservableNumberValue op1,
float op2)
Creates a new
BooleanBinding that holds true
if the value of a ObservableNumberValue is
less than or equal to a constant value. |
static BooleanBinding |
lessThanOrEqual(ObservableNumberValue op1,
int op2)
Creates a new
BooleanBinding that holds true
if the value of a ObservableNumberValue is
less than or equal to a constant value. |
static BooleanBinding |
lessThanOrEqual(ObservableNumberValue op1,
long op2)
Creates a new
BooleanBinding that holds true
if the value of a ObservableNumberValue is
less than or equal to a constant value. |
static BooleanBinding |
lessThanOrEqual(ObservableNumberValue op1,
ObservableNumberValue op2)
Creates a new
BooleanBinding that holds true
if the value of the first
ObservableNumberValue is less than or equal to
the value of the second. |
static BooleanBinding |
lessThanOrEqual(ObservableStringValue op1,
ObservableStringValue op2)
Creates a new
BooleanBinding that holds true
if the value of the first
ObservableStringValue is less than or equal to
the value of the second. |
static BooleanBinding |
lessThanOrEqual(ObservableStringValue op1,
java.lang.String op2)
Creates a new
BooleanBinding that holds true
if the value of a ObservableStringValue is
less than or equal to a constant value. |
static BooleanBinding |
lessThanOrEqual(java.lang.String op1,
ObservableStringValue op2)
Creates a new
BooleanBinding that holds true
if a constant value is less than or equal to the value of a
ObservableStringValue . |
static DoubleBinding |
max(double op1,
ObservableNumberValue op2)
Creates a new
DoubleBinding that calculates
the maximum of the value of a
ObservableNumberValue and a constant value. |
static NumberBinding |
max(float op1,
ObservableNumberValue op2)
Creates a new
NumberBinding that calculates
the maximum of the value of a
ObservableNumberValue and a constant value. |
static NumberBinding |
max(int op1,
ObservableNumberValue op2)
Creates a new
NumberBinding that calculates
the maximum of the value of a
ObservableNumberValue and a constant value. |
static NumberBinding |
max(long op1,
ObservableNumberValue op2)
Creates a new
NumberBinding that calculates
the maximum of the value of a
ObservableNumberValue and a constant value. |
static DoubleBinding |
max(ObservableNumberValue op1,
double op2)
Creates a new
DoubleBinding that calculates
the maximum of the value of a
ObservableNumberValue and a constant value. |
static NumberBinding |
max(ObservableNumberValue op1,
float op2)
Creates a new
NumberBinding that calculates
the maximum of the value of a
ObservableNumberValue and a constant value. |
static NumberBinding |
max(ObservableNumberValue op1,
int op2)
Creates a new
NumberBinding that calculates
the maximum of the value of a
ObservableNumberValue and a constant value. |
static NumberBinding |
max(ObservableNumberValue op1,
long op2)
Creates a new
NumberBinding that calculates
the maximum of the value of a
ObservableNumberValue and a constant value. |
static NumberBinding |
max(ObservableNumberValue op1,
ObservableNumberValue op2)
Creates a new
NumberBinding that calculates
the maximum of the values of two instances of
ObservableNumberValue . |
static DoubleBinding |
min(double op1,
ObservableNumberValue op2)
Creates a new
DoubleBinding that calculates
the minimum of the value of a
ObservableNumberValue and a constant value. |
static NumberBinding |
min(float op1,
ObservableNumberValue op2)
Creates a new
NumberBinding that calculates
the minimum of the value of a
ObservableNumberValue and a constant value. |
static NumberBinding |
min(int op1,
ObservableNumberValue op2)
Creates a new
NumberBinding that calculates
the minimum of the value of a
ObservableNumberValue and a constant value. |
static NumberBinding |
min(long op1,
ObservableNumberValue op2)
Creates a new
NumberBinding that calculates
the minimum of the value of a
ObservableNumberValue and a constant value. |
static DoubleBinding |
min(ObservableNumberValue op1,
double op2)
Creates a new
DoubleBinding that calculates
the minimum of the value of a
ObservableNumberValue and a constant value. |
static NumberBinding |
min(ObservableNumberValue op1,
float op2)
Creates a new
NumberBinding that calculates
the minimum of the value of a
ObservableNumberValue and a constant value. |
static NumberBinding |
min(ObservableNumberValue op1,
int op2)
Creates a new
NumberBinding that calculates
the minimum of the value of a
ObservableNumberValue and a constant value. |
static NumberBinding |
min(ObservableNumberValue op1,
long op2)
Creates a new
NumberBinding that calculates
the minimum of the value of a
ObservableNumberValue and a constant value. |
static NumberBinding |
min(ObservableNumberValue op1,
ObservableNumberValue op2)
Creates a new
NumberBinding that calculates
the minimum of the values of two instances of
ObservableNumberValue . |
static DoubleBinding |
multiply(double op1,
ObservableNumberValue op2)
Creates a new
DoubleBinding that calculates
the product of the value of a
ObservableNumberValue and a constant value. |
static NumberBinding |
multiply(float op1,
ObservableNumberValue op2)
Creates a new
NumberBinding that calculates
the product of the value of a
ObservableNumberValue and a constant value. |
static NumberBinding |
multiply(int op1,
ObservableNumberValue op2)
Creates a new
NumberBinding that calculates
the product of the value of a
ObservableNumberValue and a constant value. |
static NumberBinding |
multiply(long op1,
ObservableNumberValue op2)
Creates a new
NumberBinding that calculates
the product of the value of a
ObservableNumberValue and a constant value. |
static DoubleBinding |
multiply(ObservableNumberValue op1,
double op2)
Creates a new
DoubleBinding that calculates
the product of the value of a
ObservableNumberValue and a constant value. |
static NumberBinding |
multiply(ObservableNumberValue op1,
float op2)
Creates a new
NumberBinding that calculates
the product of the value of a
ObservableNumberValue and a constant value. |
static NumberBinding |
multiply(ObservableNumberValue op1,
int op2)
Creates a new
NumberBinding that calculates
the product of the value of a
ObservableNumberValue and a constant value. |
static NumberBinding |
multiply(ObservableNumberValue op1,
long op2)
Creates a new
NumberBinding that calculates
the product of the value of a
ObservableNumberValue and a constant value. |
static NumberBinding |
multiply(ObservableNumberValue op1,
ObservableNumberValue op2)
Creates a new
NumberBinding that calculates
the product of the values of two instances of
ObservableNumberValue . |
static NumberBinding |
negate(ObservableNumberValue value)
Creates a new
NumberBinding that calculates
the negation of a ObservableNumberValue . |
static BooleanBinding |
not(ObservableBooleanValue op)
Creates a
BooleanBinding that calculates the inverse of the value
of a ObservableBooleanValue . |
static BooleanBinding |
notEqual(double op1,
ObservableNumberValue op2,
double epsilon)
Creates a new
BooleanBinding that holds true
if the value of a ObservableNumberValue is not
equal to a constant value (with a tolerance). |
static BooleanBinding |
notEqual(float op1,
ObservableNumberValue op2,
double epsilon)
Creates a new
BooleanBinding that holds true
if the value of a ObservableNumberValue is not
equal to a constant value (with a tolerance). |
static BooleanBinding |
notEqual(int op1,
ObservableNumberValue op2)
Creates a new
BooleanBinding that holds true
if the value of a ObservableNumberValue is not
equal to a constant value. |
static BooleanBinding |
notEqual(int op1,
ObservableNumberValue op2,
double epsilon)
Creates a new
BooleanBinding that holds true
if the value of a ObservableNumberValue is not
equal to a constant value (with a tolerance). |
static BooleanBinding |
notEqual(long op1,
ObservableNumberValue op2)
Creates a new
BooleanBinding that holds true
if the value of a ObservableNumberValue is not
equal to a constant value. |
static BooleanBinding |
notEqual(long op1,
ObservableNumberValue op2,
double epsilon)
Creates a new
BooleanBinding that holds true
if the value of a ObservableNumberValue is not
equal to a constant value (with a tolerance). |
static BooleanBinding |
notEqual(java.lang.Object op1,
ObservableObjectValue<?> op2)
Creates a new
BooleanBinding that holds true
if the value of an ObservableObjectValue is
not equal to a constant value. |
static BooleanBinding |
notEqual(ObservableBooleanValue op1,
ObservableBooleanValue op2)
Creates a new
BooleanBinding that holds true if the values of two
instances of ObservableBooleanValue are not
equal. |
static BooleanBinding |
notEqual(ObservableNumberValue op1,
double op2,
double epsilon)
Creates a new
BooleanBinding that holds true
if the value of a ObservableNumberValue is not
equal to a constant value (with a tolerance). |
static BooleanBinding |
notEqual(ObservableNumberValue op1,
float op2,
double epsilon)
Creates a new
BooleanBinding that holds true
if the value of a ObservableNumberValue is not
equal to a constant value (with a tolerance). |
static BooleanBinding |
notEqual(ObservableNumberValue op1,
int op2)
Creates a new
BooleanBinding that holds true
if the value of a ObservableNumberValue is not
equal to a constant value. |
static BooleanBinding |
notEqual(ObservableNumberValue op1,
int op2,
double epsilon)
Creates a new
BooleanBinding that holds true
if the value of a ObservableNumberValue is not
equal to a constant value (with a tolerance). |
static BooleanBinding |
notEqual(ObservableNumberValue op1,
long op2)
Creates a new
BooleanBinding that holds true
if the value of a ObservableNumberValue is not
equal to a constant value. |
static BooleanBinding |
notEqual(ObservableNumberValue op1,
long op2,
double epsilon)
Creates a new
BooleanBinding that holds true
if the value of a ObservableNumberValue is not
equal to a constant value (with a tolerance). |
static BooleanBinding |
notEqual(ObservableNumberValue op1,
ObservableNumberValue op2)
Creates a new
BooleanBinding that holds true
if the values of two instances of
ObservableNumberValue are not equal. |
static BooleanBinding |
notEqual(ObservableNumberValue op1,
ObservableNumberValue op2,
double epsilon)
Creates a new
BooleanBinding that holds true
if the values of two instances of
ObservableNumberValue are not equal (with a
tolerance). |
static BooleanBinding |
notEqual(ObservableObjectValue<?> op1,
java.lang.Object op2)
Creates a new
BooleanBinding that holds true
if the value of an ObservableObjectValue is
not equal to a constant value. |
static BooleanBinding |
notEqual(ObservableObjectValue<?> op1,
ObservableObjectValue<?> op2)
Creates a new
BooleanBinding that holds true
if the values of two instances of
ObservableObjectValue are not equal. |
static BooleanBinding |
notEqual(ObservableStringValue op1,
ObservableStringValue op2)
Creates a new
BooleanBinding that holds true
if the values of two instances of
ObservableStringValue are not equal. |
static BooleanBinding |
notEqual(ObservableStringValue op1,
java.lang.String op2)
Creates a new
BooleanBinding that holds true
if the value of a ObservableStringValue is not
equal to a constant value. |
static BooleanBinding |
notEqual(java.lang.String op1,
ObservableStringValue op2)
Creates a new
BooleanBinding that holds true
if the value of a ObservableStringValue is not
equal to a constant value. |
static BooleanBinding |
notEqualIgnoreCase(ObservableStringValue op1,
ObservableStringValue op2)
Creates a new
BooleanBinding that holds true
if the values of two instances of
ObservableStringValue are not equal ignoring
case. |
static BooleanBinding |
notEqualIgnoreCase(ObservableStringValue op1,
java.lang.String op2)
Creates a new
BooleanBinding that holds true
if the value of a ObservableStringValue is not
equal to a constant value ignoring case. |
static BooleanBinding |
notEqualIgnoreCase(java.lang.String op1,
ObservableStringValue op2)
Creates a new
BooleanBinding that holds true
if the value of a ObservableStringValue is not
equal to a constant value ignoring case. |
static BooleanBinding |
or(ObservableBooleanValue op1,
ObservableBooleanValue op2)
Creates a
BooleanBinding that calculates the conditional-OR
operation on the value of two instance of
ObservableBooleanValue . |
static <T> ObjectBinding<T> |
select(ObservableValue<?> root,
java.lang.String... steps)
Creates a binding used to get a member, such as
a.b.c . |
static BooleanBinding |
selectBoolean(ObservableValue<?> root,
java.lang.String... steps)
Creates a binding used to get a member, such as
a.b.c . |
static DoubleBinding |
selectDouble(ObservableValue<?> root,
java.lang.String... steps)
Creates a binding used to get a member, such as
a.b.c . |
static FloatBinding |
selectFloat(ObservableValue<?> root,
java.lang.String... steps)
Creates a binding used to get a member, such as
a.b.c . |
static IntegerBinding |
selectInteger(ObservableValue<?> root,
java.lang.String... steps)
Creates a binding used to get a member, such as
a.b.c . |
static LongBinding |
selectLong(ObservableValue<?> root,
java.lang.String... steps)
Creates a binding used to get a member, such as
a.b.c . |
static StringBinding |
selectString(ObservableValue<?> root,
java.lang.String... steps)
Creates a binding used to get a member, such as
a.b.c . |
static DoubleBinding |
subtract(double op1,
ObservableNumberValue op2)
Creates a new
DoubleBinding that calculates
the difference of a constant value and the value of a
ObservableNumberValue . |
static NumberBinding |
subtract(float op1,
ObservableNumberValue op2)
Creates a new
NumberBinding that calculates
the difference of a constant value and the value of a
ObservableNumberValue . |
static NumberBinding |
subtract(int op1,
ObservableNumberValue op2)
Creates a new
NumberBinding that calculates
the difference of a constant value and the value of a
ObservableNumberValue . |
static NumberBinding |
subtract(long op1,
ObservableNumberValue op2)
Creates a new
NumberBinding that calculates
the difference of a constant value and the value of a
ObservableNumberValue . |
static DoubleBinding |
subtract(ObservableNumberValue op1,
double op2)
Creates a new
DoubleBinding that calculates
the difference of the value of a
ObservableNumberValue and a constant value. |
static NumberBinding |
subtract(ObservableNumberValue op1,
float op2)
Creates a new
NumberBinding that calculates
the difference of the value of a
ObservableNumberValue and a constant value. |
static NumberBinding |
subtract(ObservableNumberValue op1,
int op2)
Creates a new
NumberBinding that calculates
the difference of the value of a
ObservableNumberValue and a constant value. |
static NumberBinding |
subtract(ObservableNumberValue op1,
long op2)
Creates a new
NumberBinding that calculates
the difference of the value of a
ObservableNumberValue and a constant value. |
static NumberBinding |
subtract(ObservableNumberValue op1,
ObservableNumberValue op2)
Creates a new
NumberBinding that calculates
the difference of the values of two instances of
ObservableNumberValue . |
static <T> void |
unbindBidirectional(Property<T> property1,
Property<T> property2)
Delete a bidirectional binding that was previously defined with
bindBidirectional(Property, Property) . |
static When |
when(ObservableBooleanValue condition)
Creates a binding that calculates the result of a ternary expression.
|
public static <T> ObjectBinding<T> select(ObservableValue<?> root, java.lang.String... steps)
a.b.c
. The value
of the binding will be c
, or null
if c
could not
be reached (due to b
not having a c
property,
b
being null
, or c
not being the right type etc.).root
- The root ObservableValue
steps
- The property names to reach the final propertyObjectBinding
public static DoubleBinding selectDouble(ObservableValue<?> root, java.lang.String... steps)
a.b.c
. The value
of the binding will be c
, or 0.0
if c
could not
be reached (due to b
not having a c
property,
b
being null
, or c
not being a Number
etc.).root
- The root ObservableValue
steps
- The property names to reach the final propertyDoubleBinding
public static FloatBinding selectFloat(ObservableValue<?> root, java.lang.String... steps)
a.b.c
. The value
of the binding will be c
, or 0.0f
if c
could not
be reached (due to b
not having a c
property,
b
being null
, or c
not being a Number
etc.).root
- The root ObservableValue
steps
- The property names to reach the final propertyFloatBinding
public static IntegerBinding selectInteger(ObservableValue<?> root, java.lang.String... steps)
a.b.c
. The value
of the binding will be c
, or 0
if c
could not
be reached (due to b
not having a c
property,
b
being null
, or c
not being a Number
etc.).root
- The root ObservableValue
steps
- The property names to reach the final propertyIntegerBinding
public static LongBinding selectLong(ObservableValue<?> root, java.lang.String... steps)
a.b.c
. The value
of the binding will be c
, or 0L
if c
could not
be reached (due to b
not having a c
property,
b
being null
, or c
not being a Number
etc.).root
- The root ObservableValue
steps
- The property names to reach the final propertyLongBinding
public static BooleanBinding selectBoolean(ObservableValue<?> root, java.lang.String... steps)
a.b.c
. The value
of the binding will be c
, or false
if c
could not
be reached (due to b
not having a c
property,
b
being null
, or c
not being a boolean
etc.).root
- The root ObservableValue
steps
- The property names to reach the final propertyObjectBinding
public static StringBinding selectString(ObservableValue<?> root, java.lang.String... steps)
a.b.c
. The value
of the binding will be c
, or ""
if c
could not
be reached (due to b
not having a c
property,
b
being null
, or c
not being a String
etc.).root
- The root ObservableValue
steps
- The property names to reach the final propertyObjectBinding
public static When when(ObservableBooleanValue condition)
When
for details.condition
- the condition of the ternary expressionWhen
public static <T> void bindBidirectional(Property<T> property1, Property<T> property2)
Property
.
A bidirectional binding is a binding that works in both directions. If
two properties a
and b
are linked with a bidirectional
binding and the value of a
changes, b
is set to the same
value automatically. And vice versa, if b
changes, a
is
set to the same value.
A bidirectional binding can be removed with
unbindBidirectional(Property, Property)
.
Note: this implementation of a bidirectional binding behaves differently from all other bindings here in two important aspects. A property that is linked to another property with a bidirectional binding can still be set (usually bindings would throw an exception). Secondly bidirectional bindings are calculated eagerly, i.e. a bound property is updated immediately.
T
- the types of the propertiesproperty1
- the first Property<T>
property2
- the second Property<T>
public static <T> void unbindBidirectional(Property<T> property1, Property<T> property2)
bindBidirectional(Property, Property)
.T
- the types of the propertiesproperty1
- the first Property<T>
property2
- the second Property<T>
public static NumberBinding negate(ObservableNumberValue value)
NumberBinding
that calculates
the negation of a ObservableNumberValue
.value
- the operandNumberBinding
java.lang.NullPointerException
- if the value is null
public static NumberBinding add(ObservableNumberValue op1, ObservableNumberValue op2)
NumberBinding
that calculates
the sum of the values of two instances of
ObservableNumberValue
.op1
- the first operandop2
- the second operandNumberBinding
java.lang.NullPointerException
- if one of the operands is null
public static DoubleBinding add(ObservableNumberValue op1, double op2)
DoubleBinding
that calculates
the sum of the value of a
ObservableNumberValue
and a constant value.op1
- the ObservableNumberValue
op2
- the constant valueDoubleBinding
java.lang.NullPointerException
- if the ObservableNumberValue
is null
public static DoubleBinding add(double op1, ObservableNumberValue op2)
DoubleBinding
that calculates
the sum of the value of a
ObservableNumberValue
and a constant value.op1
- the constant valueop2
- the ObservableNumberValue
DoubleBinding
java.lang.NullPointerException
- if the ObservableNumberValue
is null
public static NumberBinding add(ObservableNumberValue op1, float op2)
NumberBinding
that calculates
the sum of the value of a
ObservableNumberValue
and a constant value.op1
- the ObservableNumberValue
op2
- the constant valueNumberBinding
java.lang.NullPointerException
- if the ObservableNumberValue
is null
public static NumberBinding add(float op1, ObservableNumberValue op2)
NumberBinding
that calculates
the sum of the value of a
ObservableNumberValue
and a constant value.op1
- the constant valueop2
- the ObservableNumberValue
NumberBinding
java.lang.NullPointerException
- if the ObservableNumberValue
is null
public static NumberBinding add(ObservableNumberValue op1, long op2)
NumberBinding
that calculates
the sum of the value of a
ObservableNumberValue
and a constant value.op1
- the ObservableNumberValue
op2
- the constant valueNumberBinding
java.lang.NullPointerException
- if the ObservableNumberValue
is null
public static NumberBinding add(long op1, ObservableNumberValue op2)
NumberBinding
that calculates
the sum of the value of a
ObservableNumberValue
and a constant value.op1
- the constant valueop2
- the ObservableNumberValue
NumberBinding
java.lang.NullPointerException
- if the ObservableNumberValue
is null
public static NumberBinding add(ObservableNumberValue op1, int op2)
NumberBinding
that calculates
the sum of the value of a
ObservableNumberValue
and a constant value.op1
- the ObservableNumberValue
op2
- the constant valueNumberBinding
java.lang.NullPointerException
- if the ObservableNumberValue
is null
public static NumberBinding add(int op1, ObservableNumberValue op2)
NumberBinding
that calculates
the sum of the value of a
ObservableNumberValue
and a constant value.op1
- the constant valueop2
- the ObservableNumberValue
NumberBinding
java.lang.NullPointerException
- if the ObservableNumberValue
is null
public static NumberBinding subtract(ObservableNumberValue op1, ObservableNumberValue op2)
NumberBinding
that calculates
the difference of the values of two instances of
ObservableNumberValue
.op1
- the first operandop2
- the second operandNumberBinding
java.lang.NullPointerException
- if one of the operands is null
public static DoubleBinding subtract(ObservableNumberValue op1, double op2)
DoubleBinding
that calculates
the difference of the value of a
ObservableNumberValue
and a constant value.op1
- the ObservableNumberValue
op2
- the constant valueDoubleBinding
java.lang.NullPointerException
- if the ObservableNumberValue
is null
public static DoubleBinding subtract(double op1, ObservableNumberValue op2)
DoubleBinding
that calculates
the difference of a constant value and the value of a
ObservableNumberValue
.op1
- the constant valueop2
- the ObservableNumberValue
DoubleBinding
java.lang.NullPointerException
- if the ObservableNumberValue
is null
public static NumberBinding subtract(ObservableNumberValue op1, float op2)
NumberBinding
that calculates
the difference of the value of a
ObservableNumberValue
and a constant value.op1
- the constant valueop2
- the ObservableNumberValue
NumberBinding
java.lang.NullPointerException
- if the ObservableNumberValue
is null
public static NumberBinding subtract(float op1, ObservableNumberValue op2)
NumberBinding
that calculates
the difference of a constant value and the value of a
ObservableNumberValue
.op1
- the ObservableNumberValue
op2
- the constant valueNumberBinding
java.lang.NullPointerException
- if the ObservableNumberValue
is null
public static NumberBinding subtract(ObservableNumberValue op1, long op2)
NumberBinding
that calculates
the difference of the value of a
ObservableNumberValue
and a constant value.op1
- the constant valueop2
- the ObservableNumberValue
NumberBinding
java.lang.NullPointerException
- if the ObservableNumberValue
is null
public static NumberBinding subtract(long op1, ObservableNumberValue op2)
NumberBinding
that calculates
the difference of a constant value and the value of a
ObservableNumberValue
.op1
- the ObservableNumberValue
op2
- the constant valueNumberBinding
java.lang.NullPointerException
- if the ObservableNumberValue
is null
public static NumberBinding subtract(ObservableNumberValue op1, int op2)
NumberBinding
that calculates
the difference of the value of a
ObservableNumberValue
and a constant value.op1
- the constant valueop2
- the ObservableNumberValue
NumberBinding
java.lang.NullPointerException
- if the ObservableNumberValue
is null
public static NumberBinding subtract(int op1, ObservableNumberValue op2)
NumberBinding
that calculates
the difference of a constant value and the value of a
ObservableNumberValue
.op1
- the ObservableNumberValue
op2
- the constant valueNumberBinding
java.lang.NullPointerException
- if the ObservableNumberValue
is null
public static NumberBinding multiply(ObservableNumberValue op1, ObservableNumberValue op2)
NumberBinding
that calculates
the product of the values of two instances of
ObservableNumberValue
.op1
- the first operandop2
- the second operandNumberBinding
java.lang.NullPointerException
- if one of the operands is null
public static DoubleBinding multiply(ObservableNumberValue op1, double op2)
DoubleBinding
that calculates
the product of the value of a
ObservableNumberValue
and a constant value.op1
- the ObservableNumberValue
op2
- the constant valueDoubleBinding
java.lang.NullPointerException
- if the ObservableNumberValue
is null
public static DoubleBinding multiply(double op1, ObservableNumberValue op2)
DoubleBinding
that calculates
the product of the value of a
ObservableNumberValue
and a constant value.op1
- the constant valueop2
- the ObservableNumberValue
DoubleBinding
java.lang.NullPointerException
- if the ObservableNumberValue
is null
public static NumberBinding multiply(ObservableNumberValue op1, float op2)
NumberBinding
that calculates
the product of the value of a
ObservableNumberValue
and a constant value.op1
- the constant valueop2
- the ObservableNumberValue
NumberBinding
java.lang.NullPointerException
- if the ObservableNumberValue
is null
public static NumberBinding multiply(float op1, ObservableNumberValue op2)
NumberBinding
that calculates
the product of the value of a
ObservableNumberValue
and a constant value.op1
- the constant valueop2
- the ObservableNumberValue
NumberBinding
java.lang.NullPointerException
- if the ObservableNumberValue
is null
public static NumberBinding multiply(ObservableNumberValue op1, long op2)
NumberBinding
that calculates
the product of the value of a
ObservableNumberValue
and a constant value.op1
- the constant valueop2
- the ObservableNumberValue
NumberBinding
java.lang.NullPointerException
- if the ObservableNumberValue
is null
public static NumberBinding multiply(long op1, ObservableNumberValue op2)
NumberBinding
that calculates
the product of the value of a
ObservableNumberValue
and a constant value.op1
- the constant valueop2
- the ObservableNumberValue
NumberBinding
java.lang.NullPointerException
- if the ObservableNumberValue
is null
public static NumberBinding multiply(ObservableNumberValue op1, int op2)
NumberBinding
that calculates
the product of the value of a
ObservableNumberValue
and a constant value.op1
- the constant valueop2
- the ObservableNumberValue
NumberBinding
java.lang.NullPointerException
- if the ObservableNumberValue
is null
public static NumberBinding multiply(int op1, ObservableNumberValue op2)
NumberBinding
that calculates
the product of the value of a
ObservableNumberValue
and a constant value.op1
- the constant valueop2
- the ObservableNumberValue
NumberBinding
java.lang.NullPointerException
- if the ObservableNumberValue
is null
public static NumberBinding divide(ObservableNumberValue op1, ObservableNumberValue op2)
NumberBinding
that calculates
the division of the values of two instances of
ObservableNumberValue
.op1
- the first operandop2
- the second operandNumberBinding
java.lang.NullPointerException
- if one of the operands is null
public static DoubleBinding divide(ObservableNumberValue op1, double op2)
DoubleBinding
that calculates
the division of the value of a
ObservableNumberValue
and a constant value.op1
- the ObservableNumberValue
op2
- the constant valueDoubleBinding
java.lang.NullPointerException
- if the ObservableNumberValue
is null
public static DoubleBinding divide(double op1, ObservableNumberValue op2)
DoubleBinding
that calculates
the division of a constant value and the value of a
ObservableNumberValue
.op1
- the constant valueop2
- the ObservableNumberValue
DoubleBinding
java.lang.NullPointerException
- if the ObservableNumberValue
is null
public static NumberBinding divide(ObservableNumberValue op1, float op2)
NumberBinding
that calculates
the division of the value of a
ObservableNumberValue
and a constant value.op1
- the constant valueop2
- the ObservableNumberValue
NumberBinding
java.lang.NullPointerException
- if the ObservableNumberValue
is null
public static NumberBinding divide(float op1, ObservableNumberValue op2)
NumberBinding
that calculates
the division of a constant value and the value of a
ObservableNumberValue
.op1
- the ObservableNumberValue
op2
- the constant valueNumberBinding
java.lang.NullPointerException
- if the ObservableNumberValue
is null
public static NumberBinding divide(ObservableNumberValue op1, long op2)
NumberBinding
that calculates
the division of the value of a
ObservableNumberValue
and a constant value.op1
- the constant valueop2
- the ObservableNumberValue
NumberBinding
java.lang.NullPointerException
- if the ObservableNumberValue
is null
public static NumberBinding divide(long op1, ObservableNumberValue op2)
NumberBinding
that calculates
the division of a constant value and the value of a
ObservableNumberValue
.op1
- the ObservableNumberValue
op2
- the constant valueNumberBinding
java.lang.NullPointerException
- if the ObservableNumberValue
is null
public static NumberBinding divide(ObservableNumberValue op1, int op2)
NumberBinding
that calculates
the division of the value of a
ObservableNumberValue
and a constant value.op1
- the constant valueop2
- the ObservableNumberValue
NumberBinding
java.lang.NullPointerException
- if the ObservableNumberValue
is null
public static NumberBinding divide(int op1, ObservableNumberValue op2)
NumberBinding
that calculates
the division of a constant value and the value of a
ObservableNumberValue
.op1
- the ObservableNumberValue
op2
- the constant valueNumberBinding
java.lang.NullPointerException
- if the ObservableNumberValue
is null
public static BooleanBinding equal(ObservableNumberValue op1, ObservableNumberValue op2, double epsilon)
BooleanBinding
that holds true
if the values of two instances of
ObservableNumberValue
are equal (with a
tolerance).
Two operands a
and b
are considered equal if
Math.abs(a-b) <= epsilon
.
Allowing a small tolerance is recommended when comparing floating-point numbers because of rounding-errors.
op1
- the first operandop2
- the second operandepsilon
- the permitted toleranceBooleanBinding
java.lang.NullPointerException
- if one of the operands is null
public static BooleanBinding equal(ObservableNumberValue op1, ObservableNumberValue op2)
BooleanBinding
that holds true
if the values of two instances of
ObservableNumberValue
are equal.
When comparing floating-point numbers it is recommended to use the
equal()
method that allows a small tolerance.
op1
- the first operandop2
- the second operandBooleanBinding
java.lang.NullPointerException
- if one of the operands is null
public static BooleanBinding equal(ObservableNumberValue op1, double op2, double epsilon)
BooleanBinding
that holds true
if the value of a ObservableNumberValue
is
equal to a constant value (with a tolerance).
Two operands a
and b
are considered equal if
Math.abs(a-b) <= epsilon
.
Allowing a small tolerance is recommended when comparing floating-point numbers because of rounding-errors.
op1
- the ObservableNumberValue
op2
- the constant valueepsilon
- the permitted toleranceBooleanBinding
java.lang.NullPointerException
- if the ObservableNumberValue
is null
public static BooleanBinding equal(double op1, ObservableNumberValue op2, double epsilon)
BooleanBinding
that holds true
if the value of a ObservableNumberValue
is
equal to a constant value (with a tolerance).
Two operands a
and b
are considered equal if
Math.abs(a-b) <= epsilon
.
Allowing a small tolerance is recommended when comparing floating-point numbers because of rounding-errors.
op1
- the constant valueop2
- the ObservableNumberValue
epsilon
- the permitted toleranceBooleanBinding
java.lang.NullPointerException
- if the ObservableNumberValue
is null
public static BooleanBinding equal(ObservableNumberValue op1, float op2, double epsilon)
BooleanBinding
that holds true
if the value of a ObservableNumberValue
is
equal to a constant value (with a tolerance).
Two operands a
and b
are considered equal if
Math.abs(a-b) <= epsilon
.
Allowing a small tolerance is recommended when comparing floating-point numbers because of rounding-errors.
op1
- the ObservableNumberValue
op2
- the constant valueepsilon
- the permitted toleranceBooleanBinding
java.lang.NullPointerException
- if the ObservableNumberValue
is null
public static BooleanBinding equal(float op1, ObservableNumberValue op2, double epsilon)
BooleanBinding
that holds true
if the value of a ObservableNumberValue
is
equal to a constant value (with a tolerance).
Two operands a
and b
are considered equal if
Math.abs(a-b) <= epsilon
.
Allowing a small tolerance is recommended when comparing floating-point numbers because of rounding-errors.
op1
- the constant valueop2
- the ObservableNumberValue
epsilon
- the permitted toleranceBooleanBinding
java.lang.NullPointerException
- if the ObservableNumberValue
is null
public static BooleanBinding equal(ObservableNumberValue op1, long op2, double epsilon)
BooleanBinding
that holds true
if the value of a ObservableNumberValue
is
equal to a constant value (with a tolerance).
Two operands a
and b
are considered equal if
Math.abs(a-b) <= epsilon
.
Allowing a small tolerance is recommended when comparing floating-point numbers because of rounding-errors.
op1
- the ObservableNumberValue
op2
- the constant valueepsilon
- the permitted toleranceBooleanBinding
java.lang.NullPointerException
- if the ObservableNumberValue
is null
public static BooleanBinding equal(ObservableNumberValue op1, long op2)
BooleanBinding
that holds true
if the value of a ObservableNumberValue
is
equal to a constant value.
When comparing floating-point numbers it is recommended to use the
equal()
method that
allows a small tolerance.
op1
- the ObservableNumberValue
op2
- the constant valueBooleanBinding
java.lang.NullPointerException
- if the ObservableNumberValue
is null
public static BooleanBinding equal(long op1, ObservableNumberValue op2, double epsilon)
BooleanBinding
that holds true
if the value of a ObservableNumberValue
is
equal to a constant value (with a tolerance).
Two operands a
and b
are considered equal if
Math.abs(a-b) <= epsilon
.
Allowing a small tolerance is recommended when comparing floating-point numbers because of rounding-errors.
op1
- the constant valueop2
- the ObservableNumberValue
epsilon
- the permitted toleranceBooleanBinding
java.lang.NullPointerException
- if the ObservableNumberValue
is null
public static BooleanBinding equal(long op1, ObservableNumberValue op2)
BooleanBinding
that holds true
if the value of a ObservableNumberValue
is
equal to a constant value.
When comparing floating-point numbers it is recommended to use the
equal()
method that
allows a small tolerance.
op1
- the constant valueop2
- the ObservableNumberValue
BooleanBinding
java.lang.NullPointerException
- if the ObservableNumberValue
is null
public static BooleanBinding equal(ObservableNumberValue op1, int op2, double epsilon)
BooleanBinding
that holds true
if the value of a ObservableNumberValue
is
equal to a constant value (with a tolerance).
Two operands a
and b
are considered equal if
Math.abs(a-b) <= epsilon
.
Allowing a small tolerance is recommended when comparing floating-point numbers because of rounding-errors.
op1
- the ObservableNumberValue
op2
- the constant valueepsilon
- the permitted toleranceBooleanBinding
java.lang.NullPointerException
- if the ObservableNumberValue
is null
public static BooleanBinding equal(ObservableNumberValue op1, int op2)
BooleanBinding
that holds true
if the value of a ObservableNumberValue
is
equal to a constant value.
When comparing floating-point numbers it is recommended to use the
equal()
method that
allows a small tolerance.
op1
- the ObservableNumberValue
op2
- the constant valueBooleanBinding
java.lang.NullPointerException
- if the ObservableNumberValue
is null
public static BooleanBinding equal(int op1, ObservableNumberValue op2, double epsilon)
BooleanBinding
that holds true
if the value of a ObservableNumberValue
is
equal to a constant value (with a tolerance).
Two operands a
and b
are considered equal if
Math.abs(a-b) <= epsilon
.
Allowing a small tolerance is recommended when comparing floating-point numbers because of rounding-errors.
op1
- the constant valueop2
- the ObservableNumberValue
epsilon
- the permitted toleranceBooleanBinding
java.lang.NullPointerException
- if the ObservableNumberValue
is null
public static BooleanBinding equal(int op1, ObservableNumberValue op2)
BooleanBinding
that holds true
if the value of a ObservableNumberValue
is
equal to a constant value.
When comparing floating-point numbers it is recommended to use the
equal()
method that
allows a small tolerance.
op1
- the constant valueop2
- the ObservableNumberValue
BooleanBinding
java.lang.NullPointerException
- if the ObservableNumberValue
is null
public static BooleanBinding notEqual(ObservableNumberValue op1, ObservableNumberValue op2, double epsilon)
BooleanBinding
that holds true
if the values of two instances of
ObservableNumberValue
are not equal (with a
tolerance).
Two operands a
and b
are considered equal if
Math.abs(a-b) <= epsilon
.
Allowing a small tolerance is recommended when comparing floating-point numbers because of rounding-errors.
op1
- the first operandop2
- the second operandepsilon
- the permitted toleranceBooleanBinding
java.lang.NullPointerException
- if one of the operands is null
public static BooleanBinding notEqual(ObservableNumberValue op1, ObservableNumberValue op2)
BooleanBinding
that holds true
if the values of two instances of
ObservableNumberValue
are not equal.
When comparing floating-point numbers it is recommended to use the
notEqual()
method that allows a small tolerance.
op1
- the first operandop2
- the second operandBooleanBinding
java.lang.NullPointerException
- if one of the operands is null
public static BooleanBinding notEqual(ObservableNumberValue op1, double op2, double epsilon)
BooleanBinding
that holds true
if the value of a ObservableNumberValue
is not
equal to a constant value (with a tolerance).
Two operands a
and b
are considered equal if
Math.abs(a-b) <= epsilon
.
Allowing a small tolerance is recommended when comparing floating-point numbers because of rounding-errors.
op1
- the ObservableNumberValue
op2
- the constant valueepsilon
- the permitted toleranceBooleanBinding
java.lang.NullPointerException
- if the ObservableNumberValue
is null
public static BooleanBinding notEqual(double op1, ObservableNumberValue op2, double epsilon)
BooleanBinding
that holds true
if the value of a ObservableNumberValue
is not
equal to a constant value (with a tolerance).
Two operands a
and b
are considered equal if
Math.abs(a-b) <= epsilon
.
Allowing a small tolerance is recommended when comparing floating-point numbers because of rounding-errors.
op1
- the constant valueop2
- the ObservableNumberValue
epsilon
- the permitted toleranceBooleanBinding
java.lang.NullPointerException
- if the ObservableNumberValue
is null
public static BooleanBinding notEqual(ObservableNumberValue op1, float op2, double epsilon)
BooleanBinding
that holds true
if the value of a ObservableNumberValue
is not
equal to a constant value (with a tolerance).
Two operands a
and b
are considered equal if
Math.abs(a-b) <= epsilon
.
Allowing a small tolerance is recommended when comparing floating-point numbers because of rounding-errors.
op1
- the ObservableNumberValue
op2
- the constant valueepsilon
- the permitted toleranceBooleanBinding
java.lang.NullPointerException
- if the ObservableNumberValue
is null
public static BooleanBinding notEqual(float op1, ObservableNumberValue op2, double epsilon)
BooleanBinding
that holds true
if the value of a ObservableNumberValue
is not
equal to a constant value (with a tolerance).
Two operands a
and b
are considered equal if
Math.abs(a-b) <= epsilon
.
Allowing a small tolerance is recommended when comparing floating-point numbers because of rounding-errors.
op1
- the constant valueop2
- the ObservableNumberValue
epsilon
- the permitted toleranceBooleanBinding
java.lang.NullPointerException
- if the ObservableNumberValue
is null
public static BooleanBinding notEqual(ObservableNumberValue op1, long op2, double epsilon)
BooleanBinding
that holds true
if the value of a ObservableNumberValue
is not
equal to a constant value (with a tolerance).
Two operands a
and b
are considered equal if
Math.abs(a-b) <= epsilon
.
Allowing a small tolerance is recommended when comparing floating-point numbers because of rounding-errors.
op1
- the ObservableNumberValue
op2
- the constant valueepsilon
- the permitted toleranceBooleanBinding
java.lang.NullPointerException
- if the ObservableNumberValue
is null
public static BooleanBinding notEqual(ObservableNumberValue op1, long op2)
BooleanBinding
that holds true
if the value of a ObservableNumberValue
is not
equal to a constant value.
When comparing floating-point numbers it is recommended to use the
notEqual()
method
that allows a small tolerance.
op1
- the ObservableNumberValue
op2
- the constant valueBooleanBinding
java.lang.NullPointerException
- if the ObservableNumberValue
is null
public static BooleanBinding notEqual(long op1, ObservableNumberValue op2, double epsilon)
BooleanBinding
that holds true
if the value of a ObservableNumberValue
is not
equal to a constant value (with a tolerance).
Two operands a
and b
are considered equal if
Math.abs(a-b) <= epsilon
.
Allowing a small tolerance is recommended when comparing floating-point numbers because of rounding-errors.
op1
- the constant valueop2
- the ObservableNumberValue
epsilon
- the permitted toleranceBooleanBinding
java.lang.NullPointerException
- if the ObservableNumberValue
is null
public static BooleanBinding notEqual(long op1, ObservableNumberValue op2)
BooleanBinding
that holds true
if the value of a ObservableNumberValue
is not
equal to a constant value.
When comparing floating-point numbers it is recommended to use the
notEqual()
method
that allows a small tolerance.
op1
- the constant valueop2
- the ObservableNumberValue
BooleanBinding
java.lang.NullPointerException
- if the ObservableNumberValue
is null
public static BooleanBinding notEqual(ObservableNumberValue op1, int op2, double epsilon)
BooleanBinding
that holds true
if the value of a ObservableNumberValue
is not
equal to a constant value (with a tolerance).
Two operands a
and b
are considered equal if
Math.abs(a-b) <= epsilon
.
Allowing a small tolerance is recommended when comparing floating-point numbers because of rounding-errors.
op1
- the ObservableNumberValue
op2
- the constant valueepsilon
- the permitted toleranceBooleanBinding
java.lang.NullPointerException
- if the ObservableNumberValue
is null
public static BooleanBinding notEqual(ObservableNumberValue op1, int op2)
BooleanBinding
that holds true
if the value of a ObservableNumberValue
is not
equal to a constant value.
When comparing floating-point numbers it is recommended to use the
notEqual()
method
that allows a small tolerance.
op1
- the ObservableNumberValue
op2
- the constant valueBooleanBinding
java.lang.NullPointerException
- if the ObservableNumberValue
is null
public static BooleanBinding notEqual(int op1, ObservableNumberValue op2, double epsilon)
BooleanBinding
that holds true
if the value of a ObservableNumberValue
is not
equal to a constant value (with a tolerance).
Two operands a
and b
are considered equal if
Math.abs(a-b) <= epsilon
.
Allowing a small tolerance is recommended when comparing floating-point numbers because of rounding-errors.
op1
- the constant valueop2
- the ObservableNumberValue
epsilon
- the permitted toleranceBooleanBinding
java.lang.NullPointerException
- if the ObservableNumberValue
is null
public static BooleanBinding notEqual(int op1, ObservableNumberValue op2)
BooleanBinding
that holds true
if the value of a ObservableNumberValue
is not
equal to a constant value.
When comparing floating-point numbers it is recommended to use the
notEqual()
method
that allows a small tolerance.
op1
- the constant valueop2
- the ObservableNumberValue
BooleanBinding
java.lang.NullPointerException
- if the ObservableNumberValue
is null
public static BooleanBinding greaterThan(ObservableNumberValue op1, ObservableNumberValue op2)
BooleanBinding
that holds true
if the value of the first
ObservableNumberValue
is greater than the
value of the second.op1
- the first operandop2
- the second operandBooleanBinding
java.lang.NullPointerException
- if one of the operands is null
public static BooleanBinding greaterThan(ObservableNumberValue op1, double op2)
BooleanBinding
that holds true
if the value of a ObservableNumberValue
is
greater than a constant value.op1
- the ObservableNumberValue
op2
- the constant valueBooleanBinding
java.lang.NullPointerException
- if the ObservableNumberValue
is null
public static BooleanBinding greaterThan(double op1, ObservableNumberValue op2)
BooleanBinding
that holds true
if a constant value is greater than the value of a
ObservableNumberValue
.op1
- the constant valueop2
- the ObservableNumberValue
BooleanBinding
java.lang.NullPointerException
- if the ObservableNumberValue
is null
public static BooleanBinding greaterThan(ObservableNumberValue op1, float op2)
BooleanBinding
that holds true
if the value of a ObservableNumberValue
is
greater than a constant value.op1
- the ObservableNumberValue
op2
- the constant valueBooleanBinding
java.lang.NullPointerException
- if the ObservableNumberValue
is null
public static BooleanBinding greaterThan(float op1, ObservableNumberValue op2)
BooleanBinding
that holds true
if a constant value is greater than the value of a
ObservableNumberValue
.op1
- the constant valueop2
- the ObservableNumberValue
BooleanBinding
java.lang.NullPointerException
- if the ObservableNumberValue
is null
public static BooleanBinding greaterThan(ObservableNumberValue op1, long op2)
BooleanBinding
that holds true
if the value of a ObservableNumberValue
is
greater than a constant value.op1
- the ObservableNumberValue
op2
- the constant valueBooleanBinding
java.lang.NullPointerException
- if the ObservableNumberValue
is null
public static BooleanBinding greaterThan(long op1, ObservableNumberValue op2)
BooleanBinding
that holds true
if a constant value is greater than the value of a
ObservableNumberValue
.op1
- the constant valueop2
- the ObservableNumberValue
BooleanBinding
java.lang.NullPointerException
- if the ObservableNumberValue
is null
public static BooleanBinding greaterThan(ObservableNumberValue op1, int op2)
BooleanBinding
that holds true
if the value of a ObservableNumberValue
is
greater than a constant value.op1
- the ObservableNumberValue
op2
- the constant valueBooleanBinding
java.lang.NullPointerException
- if the ObservableNumberValue
is null
public static BooleanBinding greaterThan(int op1, ObservableNumberValue op2)
BooleanBinding
that holds true
if a constant value is greater than the value of a
ObservableNumberValue
.op1
- the constant valueop2
- the ObservableNumberValue
BooleanBinding
java.lang.NullPointerException
- if the ObservableNumberValue
is null
public static BooleanBinding lessThan(ObservableNumberValue op1, ObservableNumberValue op2)
BooleanBinding
that holds true
if the value of the first
ObservableNumberValue
is less than the value
of the second.op1
- the first operandop2
- the second operandBooleanBinding
java.lang.NullPointerException
- if one of the operands is null
public static BooleanBinding lessThan(ObservableNumberValue op1, double op2)
BooleanBinding
that holds true
if the value of a ObservableNumberValue
is
less than a constant value.op1
- the ObservableNumberValue
op2
- the constant valueBooleanBinding
java.lang.NullPointerException
- if the ObservableNumberValue
is null
public static BooleanBinding lessThan(double op1, ObservableNumberValue op2)
BooleanBinding
that holds true
if a constant value is less than the value of a
ObservableNumberValue
.op1
- the constant valueop2
- the ObservableNumberValue
BooleanBinding
java.lang.NullPointerException
- if the ObservableNumberValue
is null
public static BooleanBinding lessThan(ObservableNumberValue op1, float op2)
BooleanBinding
that holds true
if the value of a ObservableNumberValue
is
less than a constant value.op1
- the ObservableNumberValue
op2
- the constant valueBooleanBinding
java.lang.NullPointerException
- if the ObservableNumberValue
is null
public static BooleanBinding lessThan(float op1, ObservableNumberValue op2)
BooleanBinding
that holds true
if a constant value is less than the value of a
ObservableNumberValue
.op1
- the constant valueop2
- the ObservableNumberValue
BooleanBinding
java.lang.NullPointerException
- if the ObservableNumberValue
is null
public static BooleanBinding lessThan(ObservableNumberValue op1, long op2)
BooleanBinding
that holds true
if the value of a ObservableNumberValue
is
less than a constant value.op1
- the ObservableNumberValue
op2
- the constant valueBooleanBinding
java.lang.NullPointerException
- if the ObservableNumberValue
is null
public static BooleanBinding lessThan(long op1, ObservableNumberValue op2)
BooleanBinding
that holds true
if a constant value is less than the value of a
ObservableNumberValue
.op1
- the constant valueop2
- the ObservableNumberValue
BooleanBinding
java.lang.NullPointerException
- if the ObservableNumberValue
is null
public static BooleanBinding lessThan(ObservableNumberValue op1, int op2)
BooleanBinding
that holds true
if the value of a ObservableNumberValue
is
less than a constant value.op1
- the ObservableNumberValue
op2
- the constant valueBooleanBinding
java.lang.NullPointerException
- if the ObservableNumberValue
is null
public static BooleanBinding lessThan(int op1, ObservableNumberValue op2)
BooleanBinding
that holds true
if a constant value is less than the value of a
ObservableNumberValue
.op1
- the constant valueop2
- the ObservableNumberValue
BooleanBinding
java.lang.NullPointerException
- if the ObservableNumberValue
is null
public static BooleanBinding greaterThanOrEqual(ObservableNumberValue op1, ObservableNumberValue op2)
BooleanBinding
that holds true
if the value of the first
ObservableNumberValue
is greater than or equal
to the value of the second.op1
- the first operandop2
- the second operandBooleanBinding
java.lang.NullPointerException
- if one of the operands is null
public static BooleanBinding greaterThanOrEqual(ObservableNumberValue op1, double op2)
BooleanBinding
that holds true
if the value of a ObservableNumberValue
is
greater than or equal to a constant value.op1
- the ObservableNumberValue
op2
- the constant valueBooleanBinding
java.lang.NullPointerException
- if the ObservableNumberValue
is null
public static BooleanBinding greaterThanOrEqual(double op1, ObservableNumberValue op2)
BooleanBinding
that holds true
if a constant value is greater than or equal to the value of a
ObservableNumberValue
.op1
- the constant valueop2
- the ObservableNumberValue
BooleanBinding
java.lang.NullPointerException
- if the ObservableNumberValue
is null
public static BooleanBinding greaterThanOrEqual(ObservableNumberValue op1, float op2)
BooleanBinding
that holds true
if the value of a ObservableNumberValue
is
greater than or equal to a constant value.op1
- the ObservableNumberValue
op2
- the constant valueBooleanBinding
java.lang.NullPointerException
- if the ObservableNumberValue
is null
public static BooleanBinding greaterThanOrEqual(float op1, ObservableNumberValue op2)
BooleanBinding
that holds true
if a constant value is greater than or equal to the value of a
ObservableNumberValue
.op1
- the constant valueop2
- the ObservableNumberValue
BooleanBinding
java.lang.NullPointerException
- if the ObservableNumberValue
is null
public static BooleanBinding greaterThanOrEqual(ObservableNumberValue op1, long op2)
BooleanBinding
that holds true
if the value of a ObservableNumberValue
is
greater than or equal to a constant value.op1
- the ObservableNumberValue
op2
- the constant valueBooleanBinding
java.lang.NullPointerException
- if the ObservableNumberValue
is null
public static BooleanBinding greaterThanOrEqual(long op1, ObservableNumberValue op2)
BooleanBinding
that holds true
if a constant value is greater than or equal to the value of a
ObservableNumberValue
.op1
- the constant valueop2
- the ObservableNumberValue
BooleanBinding
java.lang.NullPointerException
- if the ObservableNumberValue
is null
public static BooleanBinding greaterThanOrEqual(ObservableNumberValue op1, int op2)
BooleanBinding
that holds true
if the value of a ObservableNumberValue
is
greater than or equal to a constant value.op1
- the ObservableNumberValue
op2
- the constant valueBooleanBinding
java.lang.NullPointerException
- if the ObservableNumberValue
is null
public static BooleanBinding greaterThanOrEqual(int op1, ObservableNumberValue op2)
BooleanBinding
that holds true
if a constant value is greater than or equal to the value of a
ObservableNumberValue
.op1
- the constant valueop2
- the ObservableNumberValue
BooleanBinding
java.lang.NullPointerException
- if the ObservableNumberValue
is null
public static BooleanBinding lessThanOrEqual(ObservableNumberValue op1, ObservableNumberValue op2)
BooleanBinding
that holds true
if the value of the first
ObservableNumberValue
is less than or equal to
the value of the second.op1
- the first operandop2
- the second operandBooleanBinding
java.lang.NullPointerException
- if one of the operands is null
public static BooleanBinding lessThanOrEqual(ObservableNumberValue op1, double op2)
BooleanBinding
that holds true
if the value of a ObservableNumberValue
is
less than or equal to a constant value.op1
- the ObservableNumberValue
op2
- the constant valueBooleanBinding
java.lang.NullPointerException
- if the ObservableNumberValue
is null
public static BooleanBinding lessThanOrEqual(double op1, ObservableNumberValue op2)
BooleanBinding
that holds true
if a constant value is less than or equal to the value of a
ObservableNumberValue
.op1
- the constant valueop2
- the ObservableNumberValue
BooleanBinding
java.lang.NullPointerException
- if the ObservableNumberValue
is null
public static BooleanBinding lessThanOrEqual(ObservableNumberValue op1, float op2)
BooleanBinding
that holds true
if the value of a ObservableNumberValue
is
less than or equal to a constant value.op1
- the ObservableNumberValue
op2
- the constant valueBooleanBinding
java.lang.NullPointerException
- if the ObservableNumberValue
is null
public static BooleanBinding lessThanOrEqual(float op1, ObservableNumberValue op2)
BooleanBinding
that holds true
if a constant value is less than or equal to the value of a
ObservableNumberValue
.op1
- the constant valueop2
- the ObservableNumberValue
BooleanBinding
java.lang.NullPointerException
- if the ObservableNumberValue
is null
public static BooleanBinding lessThanOrEqual(ObservableNumberValue op1, long op2)
BooleanBinding
that holds true
if the value of a ObservableNumberValue
is
less than or equal to a constant value.op1
- the ObservableNumberValue
op2
- the constant valueBooleanBinding
java.lang.NullPointerException
- if the ObservableNumberValue
is null
public static BooleanBinding lessThanOrEqual(long op1, ObservableNumberValue op2)
BooleanBinding
that holds true
if a constant value is less than or equal to the value of a
ObservableNumberValue
.op1
- the constant valueop2
- the ObservableNumberValue
BooleanBinding
java.lang.NullPointerException
- if the ObservableNumberValue
is null
public static BooleanBinding lessThanOrEqual(ObservableNumberValue op1, int op2)
BooleanBinding
that holds true
if the value of a ObservableNumberValue
is
less than or equal to a constant value.op1
- the ObservableNumberValue
op2
- the constant valueBooleanBinding
java.lang.NullPointerException
- if the ObservableNumberValue
is null
public static BooleanBinding lessThanOrEqual(int op1, ObservableNumberValue op2)
BooleanBinding
that holds true
if a constant value is less than or equal to the value of a
ObservableNumberValue
.op1
- the constant valueop2
- the ObservableNumberValue
BooleanBinding
java.lang.NullPointerException
- if the ObservableNumberValue
is null
public static NumberBinding min(ObservableNumberValue op1, ObservableNumberValue op2)
NumberBinding
that calculates
the minimum of the values of two instances of
ObservableNumberValue
.op1
- the first operandop2
- the second operandNumberBinding
java.lang.NullPointerException
- if one of the operands is null
public static DoubleBinding min(ObservableNumberValue op1, double op2)
DoubleBinding
that calculates
the minimum of the value of a
ObservableNumberValue
and a constant value.op1
- the ObservableNumberValue
op2
- the constant valueDoubleBinding
java.lang.NullPointerException
- if the ObservableNumberValue
is null
public static DoubleBinding min(double op1, ObservableNumberValue op2)
DoubleBinding
that calculates
the minimum of the value of a
ObservableNumberValue
and a constant value.op1
- the constant valueop2
- the ObservableNumberValue
DoubleBinding
java.lang.NullPointerException
- if the ObservableNumberValue
is null
public static NumberBinding min(ObservableNumberValue op1, float op2)
NumberBinding
that calculates
the minimum of the value of a
ObservableNumberValue
and a constant value.op1
- the ObservableNumberValue
op2
- the constant valueNumberBinding
java.lang.NullPointerException
- if the ObservableNumberValue
is null
public static NumberBinding min(float op1, ObservableNumberValue op2)
NumberBinding
that calculates
the minimum of the value of a
ObservableNumberValue
and a constant value.op1
- the constant valueop2
- the ObservableNumberValue
NumberBinding
java.lang.NullPointerException
- if the ObservableNumberValue
is null
public static NumberBinding min(ObservableNumberValue op1, long op2)
NumberBinding
that calculates
the minimum of the value of a
ObservableNumberValue
and a constant value.op1
- the ObservableNumberValue
op2
- the constant valueNumberBinding
java.lang.NullPointerException
- if the ObservableNumberValue
is null
public static NumberBinding min(long op1, ObservableNumberValue op2)
NumberBinding
that calculates
the minimum of the value of a
ObservableNumberValue
and a constant value.op1
- the constant valueop2
- the ObservableNumberValue
NumberBinding
java.lang.NullPointerException
- if the ObservableNumberValue
is null
public static NumberBinding min(ObservableNumberValue op1, int op2)
NumberBinding
that calculates
the minimum of the value of a
ObservableNumberValue
and a constant value.op1
- the ObservableNumberValue
op2
- the constant valueNumberBinding
java.lang.NullPointerException
- if the ObservableNumberValue
is null
public static NumberBinding min(int op1, ObservableNumberValue op2)
NumberBinding
that calculates
the minimum of the value of a
ObservableNumberValue
and a constant value.op1
- the constant valueop2
- the ObservableNumberValue
NumberBinding
java.lang.NullPointerException
- if the ObservableNumberValue
is null
public static NumberBinding max(ObservableNumberValue op1, ObservableNumberValue op2)
NumberBinding
that calculates
the maximum of the values of two instances of
ObservableNumberValue
.op1
- the first operandop2
- the second operandNumberBinding
java.lang.NullPointerException
- if one of the operands is null
public static DoubleBinding max(ObservableNumberValue op1, double op2)
DoubleBinding
that calculates
the maximum of the value of a
ObservableNumberValue
and a constant value.op1
- the ObservableNumberValue
op2
- the constant valueDoubleBinding
java.lang.NullPointerException
- if the ObservableNumberValue
is null
public static DoubleBinding max(double op1, ObservableNumberValue op2)
DoubleBinding
that calculates
the maximum of the value of a
ObservableNumberValue
and a constant value.op1
- the constant valueop2
- the ObservableNumberValue
DoubleBinding
java.lang.NullPointerException
- if the ObservableNumberValue
is null
public static NumberBinding max(ObservableNumberValue op1, float op2)
NumberBinding
that calculates
the maximum of the value of a
ObservableNumberValue
and a constant value.op1
- the ObservableNumberValue
op2
- the constant valueNumberBinding
java.lang.NullPointerException
- if the ObservableNumberValue
is null
public static NumberBinding max(float op1, ObservableNumberValue op2)
NumberBinding
that calculates
the maximum of the value of a
ObservableNumberValue
and a constant value.op1
- the constant valueop2
- the ObservableNumberValue
NumberBinding
java.lang.NullPointerException
- if the ObservableNumberValue
is null
public static NumberBinding max(ObservableNumberValue op1, long op2)
NumberBinding
that calculates
the maximum of the value of a
ObservableNumberValue
and a constant value.op1
- the ObservableNumberValue
op2
- the constant valueNumberBinding
java.lang.NullPointerException
- if the ObservableNumberValue
is null
public static NumberBinding max(long op1, ObservableNumberValue op2)
NumberBinding
that calculates
the maximum of the value of a
ObservableNumberValue
and a constant value.op1
- the constant valueop2
- the ObservableNumberValue
NumberBinding
java.lang.NullPointerException
- if the ObservableNumberValue
is null
public static NumberBinding max(ObservableNumberValue op1, int op2)
NumberBinding
that calculates
the maximum of the value of a
ObservableNumberValue
and a constant value.op1
- the ObservableNumberValue
op2
- the constant valueNumberBinding
java.lang.NullPointerException
- if the ObservableNumberValue
is null
public static NumberBinding max(int op1, ObservableNumberValue op2)
NumberBinding
that calculates
the maximum of the value of a
ObservableNumberValue
and a constant value.op1
- the constant valueop2
- the ObservableNumberValue
NumberBinding
java.lang.NullPointerException
- if the ObservableNumberValue
is null
public static BooleanBinding and(ObservableBooleanValue op1, ObservableBooleanValue op2)
BooleanBinding
that calculates the conditional-AND
operation on the value of two instance of
ObservableBooleanValue
.op1
- first ObservableBooleanValue
op2
- second ObservableBooleanValue
BooleanBinding
java.lang.NullPointerException
- if one of the operands is null
public static BooleanBinding or(ObservableBooleanValue op1, ObservableBooleanValue op2)
BooleanBinding
that calculates the conditional-OR
operation on the value of two instance of
ObservableBooleanValue
.op1
- first ObservableBooleanValue
op2
- second ObservableBooleanValue
BooleanBinding
java.lang.NullPointerException
- if one of the operands is null
public static BooleanBinding not(ObservableBooleanValue op)
BooleanBinding
that calculates the inverse of the value
of a ObservableBooleanValue
.op
- the ObservableBooleanValue
BooleanBinding
java.lang.NullPointerException
- if the operand is null
public static BooleanBinding equal(ObservableBooleanValue op1, ObservableBooleanValue op2)
BooleanBinding
that holds true if the values of two
instances of ObservableBooleanValue
are equal.op1
- the first operandop2
- the second operandBooleanBinding
java.lang.NullPointerException
- if one of the operands is null
public static BooleanBinding notEqual(ObservableBooleanValue op1, ObservableBooleanValue op2)
BooleanBinding
that holds true if the values of two
instances of ObservableBooleanValue
are not
equal.op1
- the first operandop2
- the second operandBooleanBinding
java.lang.NullPointerException
- if one of the operands is null
public static StringExpression convert(ObservableValue<?> observableValue)
StringExpression
that wraps a
ObservableValue
. If the
ObservableValue
is already a StringExpression
, it will be
returned. Otherwise a new StringBinding
is
created that holds the value of the ObservableValue
converted to
a String
.observableValue
- The source ObservableValue
StringExpression
that wraps the ObservableValue
if necessaryjava.lang.NullPointerException
- if observableValue
is null
public static StringExpression concat(java.lang.Object... args)
StringExpression
that holds the
value of the concatenation of multiple Objects
.
If one of the arguments implements
ObservableValue
and the value of this
ObservableValue
changes, the change is automatically reflected in
the StringExpression
.
If null
or an empty array is passed to this method, a
StringExpression
that contains an empty String
is
returned
args
- the Objects
that should be concatenatedStringExpression
public static StringExpression format(java.lang.String format, java.lang.Object... args)
StringExpression
that holds the
value of multiple Objects
formatted according to a format
String
.
If one of the arguments implements
ObservableValue
and the value of this
ObservableValue
changes, the change is automatically reflected in
the StringExpression
.
See java.util.Formatter
for formatting rules.
format
- the formatting String
args
- the Objects
that should be inserted in the formatting
String
StringExpression
public static StringExpression format(java.util.Locale locale, java.lang.String format, java.lang.Object... args)
StringExpression
that holds the
value of multiple Objects
formatted according to a format
String
and a specified Locale
If one of the arguments implements
ObservableValue
and the value of this
ObservableValue
changes, the change is automatically reflected in
the StringExpression
.
See java.util.Formatter
for formatting rules. See
java.util.Locale
for details on Locale
.
locale
- the Locale
to use during formattingformat
- the formatting String
args
- the Objects
that should be inserted in the formatting
String
StringExpression
public static BooleanBinding equal(ObservableStringValue op1, ObservableStringValue op2)
BooleanBinding
that holds true
if the values of two instances of
ObservableStringValue
are equal.
Note: In this comparison a String
that is null
is
considered equal to an empty String
.
op1
- the first operandop2
- the second operandBooleanBinding
java.lang.NullPointerException
- if one of the operands is null
public static BooleanBinding equal(ObservableStringValue op1, java.lang.String op2)
BooleanBinding
that holds true
if the value of a ObservableStringValue
is
equal to a constant value.
Note: In this comparison a String
that is null
is
considered equal to an empty String
.
op1
- the ObservableStringValue
op2
- the constant valueBooleanBinding
java.lang.NullPointerException
- if the ObservableStringValue
is null
public static BooleanBinding equal(java.lang.String op1, ObservableStringValue op2)
BooleanBinding
that holds true
if the value of a ObservableStringValue
is
equal to a constant value.
Note: In this comparison a String
that is null
is
considered equal to an empty String
.
op1
- the constant valueop2
- the ObservableStringValue
BooleanBinding
java.lang.NullPointerException
- if the ObservableStringValue
is null
public static BooleanBinding notEqual(ObservableStringValue op1, ObservableStringValue op2)
BooleanBinding
that holds true
if the values of two instances of
ObservableStringValue
are not equal.
Note: In this comparison a String
that is null
is
considered equal to an empty String
.
op1
- the first operandop2
- the second operandBooleanBinding
java.lang.NullPointerException
- if one of the operands is null
public static BooleanBinding notEqual(ObservableStringValue op1, java.lang.String op2)
BooleanBinding
that holds true
if the value of a ObservableStringValue
is not
equal to a constant value.
Note: In this comparison a String
that is null
is
considered equal to an empty String
.
op1
- the ObservableStringValue
op2
- the constant valueBooleanBinding
java.lang.NullPointerException
- if the ObservableStringValue
is null
public static BooleanBinding notEqual(java.lang.String op1, ObservableStringValue op2)
BooleanBinding
that holds true
if the value of a ObservableStringValue
is not
equal to a constant value.
Note: In this comparison a String
that is null
is
considered equal to an empty String
.
op1
- the constant valueop2
- the ObservableStringValue
BooleanBinding
java.lang.NullPointerException
- if the ObservableStringValue
is null
public static BooleanBinding equalIgnoreCase(ObservableStringValue op1, ObservableStringValue op2)
BooleanBinding
that holds true
if the values of two instances of
ObservableStringValue
are equal ignoring case.
Note: In this comparison a String
that is null
is
considered equal to an empty String
.
op1
- the first operandop2
- the second operandBooleanBinding
java.lang.NullPointerException
- if one of the operands is null
public static BooleanBinding equalIgnoreCase(ObservableStringValue op1, java.lang.String op2)
BooleanBinding
that holds true
if the value of a ObservableStringValue
is
equal to a constant value ignoring case.
Note: In this comparison a String
that is null
is
considered equal to an empty String
.
op1
- the ObservableStringValue
op2
- the constant valueBooleanBinding
java.lang.NullPointerException
- if the ObservableStringValue
is null
public static BooleanBinding equalIgnoreCase(java.lang.String op1, ObservableStringValue op2)
BooleanBinding
that holds true
if the value of a ObservableStringValue
is
equal to a constant value ignoring case.
Note: In this comparison a String
that is null
is
considered equal to an empty String
.
op1
- the constant valueop2
- the ObservableStringValue
BooleanBinding
java.lang.NullPointerException
- if the ObservableStringValue
is null
public static BooleanBinding notEqualIgnoreCase(ObservableStringValue op1, ObservableStringValue op2)
BooleanBinding
that holds true
if the values of two instances of
ObservableStringValue
are not equal ignoring
case.
Note: In this comparison a String
that is null
is
considered equal to an empty String
.
op1
- the first operandop2
- the second operandBooleanBinding
java.lang.NullPointerException
- if one of the operands is null
public static BooleanBinding notEqualIgnoreCase(ObservableStringValue op1, java.lang.String op2)
BooleanBinding
that holds true
if the value of a ObservableStringValue
is not
equal to a constant value ignoring case.
Note: In this comparison a String
that is null
is
considered equal to an empty String
.
op1
- the ObservableStringValue
op2
- the constant valueBooleanBinding
java.lang.NullPointerException
- if the ObservableStringValue
is null
public static BooleanBinding notEqualIgnoreCase(java.lang.String op1, ObservableStringValue op2)
BooleanBinding
that holds true
if the value of a ObservableStringValue
is not
equal to a constant value ignoring case.
Note: In this comparison a String
that is null
is
considered equal to an empty String
.
op1
- the constant valueop2
- the ObservableStringValue
BooleanBinding
java.lang.NullPointerException
- if the ObservableStringValue
is null
public static BooleanBinding greaterThan(ObservableStringValue op1, ObservableStringValue op2)
BooleanBinding
that holds true
if the value of the first
ObservableStringValue
is greater than the
value of the second.
Note: In this comparison a String
that is null
is
considered equal to an empty String
.
op1
- the first operandop2
- the second operandBooleanBinding
java.lang.NullPointerException
- if one of the operands is null
public static BooleanBinding greaterThan(ObservableStringValue op1, java.lang.String op2)
BooleanBinding
that holds true
if the value of a ObservableStringValue
is
greater than a constant value.
Note: In this comparison a String
that is null
is
considered equal to an empty String
.
op1
- the ObservableStringValue
op2
- the constant valueBooleanBinding
java.lang.NullPointerException
- if the ObservableStringValue
is null
public static BooleanBinding greaterThan(java.lang.String op1, ObservableStringValue op2)
BooleanBinding
that holds true
if the value of a constant value is greater than the value of a
ObservableStringValue
.
Note: In this comparison a String
that is null
is
considered equal to an empty String
.
op1
- the constant valueop2
- the ObservableStringValue
BooleanBinding
java.lang.NullPointerException
- if the ObservableStringValue
is null
public static BooleanBinding lessThan(ObservableStringValue op1, ObservableStringValue op2)
BooleanBinding
that holds true
if the value of the first
ObservableStringValue
is less than the value
of the second.
Note: In this comparison a String
that is null
is
considered equal to an empty String
.
op1
- the first operandop2
- the second operandBooleanBinding
java.lang.NullPointerException
- if one of the operands is null
public static BooleanBinding lessThan(ObservableStringValue op1, java.lang.String op2)
BooleanBinding
that holds true
if the value of a ObservableStringValue
is
less than a constant value.
Note: In this comparison a String
that is null
is
considered equal to an empty String
.
op1
- the ObservableStringValue
op2
- the constant valueBooleanBinding
java.lang.NullPointerException
- if the ObservableStringValue
is null
public static BooleanBinding lessThan(java.lang.String op1, ObservableStringValue op2)
BooleanBinding
that holds true
if a constant value is less than the value of a
ObservableStringValue
.
Note: In this comparison a String
that is null
is
considered equal to an empty String
.
op1
- the constant valueop2
- the ObservableStringValue
BooleanBinding
java.lang.NullPointerException
- if the ObservableStringValue
is null
public static BooleanBinding greaterThanOrEqual(ObservableStringValue op1, ObservableStringValue op2)
BooleanBinding
that holds true
if the value of the first
ObservableStringValue
is greater than or equal
to the value of the second.
Note: In this comparison a String
that is null
is
considered equal to an empty String
.
op1
- the first operandop2
- the second operandBooleanBinding
java.lang.NullPointerException
- if one of the operands is null
public static BooleanBinding greaterThanOrEqual(ObservableStringValue op1, java.lang.String op2)
BooleanBinding
that holds true
if the value of a ObservableStringValue
is
greater than or equal to a constant value.
Note: In this comparison a String
that is null
is
considered equal to an empty String
.
op1
- the ObservableStringValue
op2
- the constant valueBooleanBinding
java.lang.NullPointerException
- if the ObservableStringValue
is null
public static BooleanBinding greaterThanOrEqual(java.lang.String op1, ObservableStringValue op2)
BooleanBinding
that holds true
if a constant value is greater than or equal to the value of a
ObservableStringValue
.
Note: In this comparison a String
that is null
is
considered equal to an empty String
.
op1
- the constant valueop2
- the ObservableStringValue
BooleanBinding
java.lang.NullPointerException
- if the ObservableStringValue
is null
public static BooleanBinding lessThanOrEqual(ObservableStringValue op1, ObservableStringValue op2)
BooleanBinding
that holds true
if the value of the first
ObservableStringValue
is less than or equal to
the value of the second.
Note: In this comparison a String
that is null
is
considered equal to an empty String
.
op1
- the first operandop2
- the second operandBooleanBinding
java.lang.NullPointerException
- if one of the operands is null
public static BooleanBinding lessThanOrEqual(ObservableStringValue op1, java.lang.String op2)
BooleanBinding
that holds true
if the value of a ObservableStringValue
is
less than or equal to a constant value.
Note: In this comparison a String
that is null
is
considered equal to an empty String
.
op1
- the ObservableStringValue
op2
- the constant valueBooleanBinding
java.lang.NullPointerException
- if the ObservableStringValue
is null
public static BooleanBinding lessThanOrEqual(java.lang.String op1, ObservableStringValue op2)
BooleanBinding
that holds true
if a constant value is less than or equal to the value of a
ObservableStringValue
.
Note: In this comparison a String
that is null
is
considered equal to an empty String
.
op1
- the constant valueop2
- the ObservableStringValue
BooleanBinding
java.lang.NullPointerException
- if the ObservableStringValue
is null
public static BooleanBinding equal(ObservableObjectValue<?> op1, ObservableObjectValue<?> op2)
BooleanBinding
that holds true
if the values of two instances of
ObservableObjectValue
are equal.op1
- the first operandop2
- the second operandBooleanBinding
java.lang.NullPointerException
- if one of the operands is null
public static BooleanBinding equal(ObservableObjectValue<?> op1, java.lang.Object op2)
BooleanBinding
that holds true
if the value of an ObservableObjectValue
is
equal to a constant value.op1
- the ObservableCharacterValue
op2
- the constant valueBooleanBinding
java.lang.NullPointerException
- if the ObservableCharacterValue
is null
public static BooleanBinding equal(java.lang.Object op1, ObservableObjectValue<?> op2)
BooleanBinding
that holds true
if the value of an ObservableObjectValue
is
equal to a constant value.op1
- the constant valueop2
- the ObservableCharacterValue
BooleanBinding
java.lang.NullPointerException
- if the ObservableCharacterValue
is null
public static BooleanBinding notEqual(ObservableObjectValue<?> op1, ObservableObjectValue<?> op2)
BooleanBinding
that holds true
if the values of two instances of
ObservableObjectValue
are not equal.op1
- the first operandop2
- the second operandBooleanBinding
java.lang.NullPointerException
- if one of the operands is null
public static BooleanBinding notEqual(ObservableObjectValue<?> op1, java.lang.Object op2)
BooleanBinding
that holds true
if the value of an ObservableObjectValue
is
not equal to a constant value.op1
- the ObservableObjectValue
op2
- the constant valueBooleanBinding
java.lang.NullPointerException
- if the ObservableObjectValue
is null
public static BooleanBinding notEqual(java.lang.Object op1, ObservableObjectValue<?> op2)
BooleanBinding
that holds true
if the value of an ObservableObjectValue
is
not equal to a constant value.op1
- the constant valueop2
- the ObservableObjectValue
BooleanBinding
java.lang.NullPointerException
- if the ObservableObjectValue
is null
public static BooleanBinding isNull(ObservableObjectValue<?> op)
op
- the ObservableObjectValue
BooleanBinding
java.lang.NullPointerException
- if the ObservableObjectValue
is null
public static BooleanBinding isNotNull(ObservableObjectValue<?> op)
op
- the ObservableObjectValue
BooleanBinding
java.lang.NullPointerException
- if the ObservableObjectValue
is null
Copyright (c) 2008, 2011, Oracle and/or its affiliates. All rights reserved. Use is subject to