- java.lang.Object
-
- javafx.beans.binding.NumberExpressionBase
-
- All Implemented Interfaces:
NumberExpression,Observable,ObservableNumberValue,ObservableValue<Number>
- Direct Known Subclasses:
DoubleExpression,FloatExpression,IntegerExpression,LongExpression
public abstract class NumberExpressionBase extends Object implements NumberExpression
NumberExpressionBasecontains convenience methods to generate bindings in a fluent style, that are common to all NumberExpression subclasses.NumberExpressionBase serves as a place for common code of specific NumberExpression subclasses for the specific number type.
- Since:
- JavaFX 2.0
- See Also:
IntegerExpression,LongExpression,FloatExpression,DoubleExpression
-
-
Constructor Summary
Constructors Constructor Description NumberExpressionBase()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description NumberBindingadd(ObservableNumberValue other)Creates a newNumberBindingthat calculates the sum of thisNumberExpressionand anotherObservableNumberValue.StringBindingasString()StringBindingasString(String format)StringBindingasString(Locale locale, String format)NumberBindingdivide(ObservableNumberValue other)Creates a newNumberBindingthat calculates the division of thisNumberExpressionand anotherObservableNumberValue.BooleanBindinggreaterThan(double other)Creates a newBooleanBindingthat holdstrueif thisNumberExpressionis greater than a constant value.BooleanBindinggreaterThan(float other)Creates a newBooleanBindingthat holdstrueif thisNumberExpressionis greater than a constant value.BooleanBindinggreaterThan(int other)Creates a newBooleanBindingthat holdstrueif thisNumberExpressionis greater than a constant value.BooleanBindinggreaterThan(long other)Creates a newBooleanBindingthat holdstrueif thisNumberExpressionis greater than a constant value.BooleanBindinggreaterThan(ObservableNumberValue other)Creates a newBooleanBindingthat holdstrueif thisNumberExpressionis greater than anotherObservableNumberValue.BooleanBindinggreaterThanOrEqualTo(double other)Creates a newBooleanBindingthat holdstrueif thisNumberExpressionis greater than or equal to a constant value.BooleanBindinggreaterThanOrEqualTo(float other)Creates a newBooleanBindingthat holdstrueif thisNumberExpressionis greater than or equal to a constant value.BooleanBindinggreaterThanOrEqualTo(int other)Creates a newBooleanBindingthat holdstrueif thisNumberExpressionis greater than or equal to a constant value.BooleanBindinggreaterThanOrEqualTo(long other)Creates a newBooleanBindingthat holdstrueif thisNumberExpressionis greater than or equal to a constant value.BooleanBindinggreaterThanOrEqualTo(ObservableNumberValue other)Creates a newBooleanBindingthat holdstrueif thisNumberExpressionis greater than or equal to anotherObservableNumberValue.BooleanBindingisEqualTo(double other, double epsilon)Creates a newBooleanBindingthat holdstrueif thisNumberExpressionis equal to a constant value (with a tolerance).BooleanBindingisEqualTo(float other, double epsilon)Creates a newBooleanBindingthat holdstrueif thisNumberExpressionis equal to a constant value (with a tolerance).BooleanBindingisEqualTo(int other)BooleanBindingisEqualTo(int other, double epsilon)Creates a newBooleanBindingthat holdstrueif thisNumberExpressionis equal to a constant value (with a tolerance).BooleanBindingisEqualTo(long other)BooleanBindingisEqualTo(long other, double epsilon)Creates a newBooleanBindingthat holdstrueif thisNumberExpressionis equal to a constant value (with a tolerance).BooleanBindingisEqualTo(ObservableNumberValue other)BooleanBindingisEqualTo(ObservableNumberValue other, double epsilon)Creates a newBooleanBindingthat holdstrueif this and anotherObservableNumberValueare equal (with a tolerance).BooleanBindingisNotEqualTo(double other, double epsilon)Creates a newBooleanBindingthat holdstrueif thisNumberExpressionis not equal to a constant value (with a tolerance).BooleanBindingisNotEqualTo(float other, double epsilon)Creates a newBooleanBindingthat holdstrueif thisNumberExpressionis not equal to a constant value (with a tolerance).BooleanBindingisNotEqualTo(int other)Creates a newBooleanBindingthat holdstrueif thisNumberExpressionis not equal to a constant value.BooleanBindingisNotEqualTo(int other, double epsilon)Creates a newBooleanBindingthat holdstrueif thisNumberExpressionis not equal to a constant value (with a tolerance).BooleanBindingisNotEqualTo(long other)Creates a newBooleanBindingthat holdstrueif thisNumberExpressionis not equal to a constant value.BooleanBindingisNotEqualTo(long other, double epsilon)Creates a newBooleanBindingthat holdstrueif thisNumberExpressionis not equal to a constant value (with a tolerance).BooleanBindingisNotEqualTo(ObservableNumberValue other)Creates a newBooleanBindingthat holdstrueif this and anotherObservableNumberValueare not equal.BooleanBindingisNotEqualTo(ObservableNumberValue other, double epsilon)Creates a newBooleanBindingthat holdstrueif this and anotherObservableNumberValueare not equal (with a tolerance).BooleanBindinglessThan(double other)Creates a newBooleanBindingthat holdstrueif thisNumberExpressionis lesser than a constant value.BooleanBindinglessThan(float other)Creates a newBooleanBindingthat holdstrueif thisNumberExpressionis lesser than a constant value.BooleanBindinglessThan(int other)Creates a newBooleanBindingthat holdstrueif thisNumberExpressionis lesser than a constant value.BooleanBindinglessThan(long other)Creates a newBooleanBindingthat holdstrueif thisNumberExpressionis lesser than a constant value.BooleanBindinglessThan(ObservableNumberValue other)Creates a newBooleanBindingthat holdstrueif thisNumberExpressionis lesser than anotherObservableNumberValue.BooleanBindinglessThanOrEqualTo(double other)Creates a newBooleanBindingthat holdstrueif thisNumberExpressionis less than or equal to a constant value.BooleanBindinglessThanOrEqualTo(float other)Creates a newBooleanBindingthat holdstrueif thisNumberExpressionis less than or equal to a constant value.BooleanBindinglessThanOrEqualTo(int other)Creates a newBooleanBindingthat holdstrueif thisNumberExpressionis less than or equal to a constant value.BooleanBindinglessThanOrEqualTo(long other)Creates a newBooleanBindingthat holdstrueif thisNumberExpressionis less than or equal to a constant value.BooleanBindinglessThanOrEqualTo(ObservableNumberValue other)Creates a newBooleanBindingthat holdstrueif thisNumberExpressionis less than or equal to anotherObservableNumberValue.NumberBindingmultiply(ObservableNumberValue other)Creates a newNumberBindingthat calculates the product of thisNumberExpressionand anotherObservableNumberValue.static <S extends Number>
NumberExpressionBasenumberExpression(ObservableNumberValue value)Returns anNumberExpressionBasethat wraps aObservableNumberValue.NumberBindingsubtract(ObservableNumberValue other)Creates a newNumberBindingthat calculates the difference of thisNumberExpressionand anotherObservableNumberValue.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface javafx.beans.binding.NumberExpression
add, add, add, add, divide, divide, divide, divide, multiply, multiply, multiply, multiply, negate, subtract, subtract, subtract, subtract
-
Methods inherited from interface javafx.beans.Observable
addListener, removeListener
-
Methods inherited from interface javafx.beans.value.ObservableNumberValue
doubleValue, floatValue, intValue, longValue
-
Methods inherited from interface javafx.beans.value.ObservableValue
addListener, getValue, removeListener
-
-
-
-
Method Detail
-
numberExpression
public static <S extends Number> NumberExpressionBase numberExpression(ObservableNumberValue value)
Returns anNumberExpressionBasethat wraps aObservableNumberValue. If theObservableNumberValueis already an instance ofNumberExpressionBase, it will be returned. Otherwise a newNumberBindingis created that is bound to theObservableNumberValue.- Type Parameters:
S- The type of Number to be wrapped- Parameters:
value- The sourceObservableNumberValue- Returns:
- An
NumberExpressionBasethat wraps theObservableNumberValueif necessary - Throws:
NullPointerException- ifvalueisnull
-
add
public NumberBinding add(ObservableNumberValue other)
Description copied from interface:NumberExpressionCreates a newNumberBindingthat calculates the sum of thisNumberExpressionand anotherObservableNumberValue.- Specified by:
addin interfaceNumberExpression- Parameters:
other- the secondObservableNumberValue- Returns:
- the new
NumberBinding
-
subtract
public NumberBinding subtract(ObservableNumberValue other)
Description copied from interface:NumberExpressionCreates a newNumberBindingthat calculates the difference of thisNumberExpressionand anotherObservableNumberValue.- Specified by:
subtractin interfaceNumberExpression- Parameters:
other- the secondObservableNumberValue- Returns:
- the new
NumberBinding
-
multiply
public NumberBinding multiply(ObservableNumberValue other)
Description copied from interface:NumberExpressionCreates a newNumberBindingthat calculates the product of thisNumberExpressionand anotherObservableNumberValue.- Specified by:
multiplyin interfaceNumberExpression- Parameters:
other- the secondObservableNumberValue- Returns:
- the new
NumberBinding
-
divide
public NumberBinding divide(ObservableNumberValue other)
Description copied from interface:NumberExpressionCreates a newNumberBindingthat calculates the division of thisNumberExpressionand anotherObservableNumberValue.- Specified by:
dividein interfaceNumberExpression- Parameters:
other- the secondObservableNumberValue- Returns:
- the new
NumberBinding
-
isEqualTo
public BooleanBinding isEqualTo(ObservableNumberValue other)
Description copied from interface:NumberExpressionCreates a newBooleanBindingthat holdstrueif this and anotherObservableNumberValueare equal.When comparing floating-point numbers it is recommended to use the
isEqualTo()method that allows a small tolerance.- Specified by:
isEqualToin interfaceNumberExpression- Parameters:
other- the secondObservableNumberValue- Returns:
- the new
BooleanBinding
-
isEqualTo
public BooleanBinding isEqualTo(ObservableNumberValue other, double epsilon)
Description copied from interface:NumberExpressionCreates a newBooleanBindingthat holdstrueif this and anotherObservableNumberValueare equal (with a tolerance).Two operands
aandbare considered equal ifMath.abs(a-b) <= epsilon.Allowing a small tolerance is recommended when comparing floating-point numbers because of rounding-errors.
- Specified by:
isEqualToin interfaceNumberExpression- Parameters:
other- the secondObservableNumberValueepsilon- the tolerance- Returns:
- the new
BooleanBinding
-
isEqualTo
public BooleanBinding isEqualTo(double other, double epsilon)
Description copied from interface:NumberExpressionCreates a newBooleanBindingthat holdstrueif thisNumberExpressionis equal to a constant value (with a tolerance).Two operands
aandbare considered equal ifMath.abs(a-b) <= epsilon.Allowing a small tolerance is recommended when comparing floating-point numbers because of rounding-errors.
- Specified by:
isEqualToin interfaceNumberExpression- Parameters:
other- the constant valueepsilon- the permitted tolerance- Returns:
- the new
BooleanBinding
-
isEqualTo
public BooleanBinding isEqualTo(float other, double epsilon)
Description copied from interface:NumberExpressionCreates a newBooleanBindingthat holdstrueif thisNumberExpressionis equal to a constant value (with a tolerance).Two operands
aandbare considered equal ifMath.abs(a-b) <= epsilon.Allowing a small tolerance is recommended when comparing floating-point numbers because of rounding-errors.
- Specified by:
isEqualToin interfaceNumberExpression- Parameters:
other- the constant valueepsilon- the permitted tolerance- Returns:
- the new
BooleanBinding
-
isEqualTo
public BooleanBinding isEqualTo(long other)
Description copied from interface:NumberExpressionCreates a newBooleanBindingthat holdstrueif thisNumberExpressionis equal to a constant value.When comparing floating-point numbers it is recommended to use the
isEqualTo()method that allows a small tolerance.- Specified by:
isEqualToin interfaceNumberExpression- Parameters:
other- the constant value- Returns:
- the new
BooleanBinding
-
isEqualTo
public BooleanBinding isEqualTo(long other, double epsilon)
Description copied from interface:NumberExpressionCreates a newBooleanBindingthat holdstrueif thisNumberExpressionis equal to a constant value (with a tolerance).Two operands
aandbare considered equal ifMath.abs(a-b) <= epsilon.Allowing a small tolerance is recommended when comparing floating-point numbers because of rounding-errors.
- Specified by:
isEqualToin interfaceNumberExpression- Parameters:
other- the constant valueepsilon- the permitted tolerance- Returns:
- the new
BooleanBinding
-
isEqualTo
public BooleanBinding isEqualTo(int other)
Description copied from interface:NumberExpressionCreates a newBooleanBindingthat holdstrueif thisNumberExpressionis equal to a constant value.When comparing floating-point numbers it is recommended to use the
isEqualTo()method that allows a small tolerance.- Specified by:
isEqualToin interfaceNumberExpression- Parameters:
other- the constant value- Returns:
- the new
BooleanBinding
-
isEqualTo
public BooleanBinding isEqualTo(int other, double epsilon)
Description copied from interface:NumberExpressionCreates a newBooleanBindingthat holdstrueif thisNumberExpressionis equal to a constant value (with a tolerance).Two operands
aandbare considered equal ifMath.abs(a-b) <= epsilon.Allowing a small tolerance is recommended when comparing floating-point numbers.
- Specified by:
isEqualToin interfaceNumberExpression- Parameters:
other- the constant valueepsilon- the permitted tolerance- Returns:
- the new
BooleanBinding
-
isNotEqualTo
public BooleanBinding isNotEqualTo(ObservableNumberValue other)
Description copied from interface:NumberExpressionCreates a newBooleanBindingthat holdstrueif this and anotherObservableNumberValueare not equal.When comparing floating-point numbers it is recommended to use the
isNotEqualTo()method that allows a small tolerance.- Specified by:
isNotEqualToin interfaceNumberExpression- Parameters:
other- the secondObservableNumberValue- Returns:
- the new
BooleanBinding
-
isNotEqualTo
public BooleanBinding isNotEqualTo(ObservableNumberValue other, double epsilon)
Description copied from interface:NumberExpressionCreates a newBooleanBindingthat holdstrueif this and anotherObservableNumberValueare not equal (with a tolerance).Two operands
aandbare considered not equal ifMath.abs(a-b) > epsilon.Allowing a small tolerance is recommended when comparing floating-point numbers because of rounding-errors.
- Specified by:
isNotEqualToin interfaceNumberExpression- Parameters:
other- the secondObservableNumberValueepsilon- the permitted tolerance- Returns:
- the new
BooleanBinding
-
isNotEqualTo
public BooleanBinding isNotEqualTo(double other, double epsilon)
Description copied from interface:NumberExpressionCreates a newBooleanBindingthat holdstrueif thisNumberExpressionis not equal to a constant value (with a tolerance).Two operands
aandbare considered not equal ifMath.abs(a-b) > epsilon.Allowing a small tolerance is recommended when comparing floating-point numbers.
- Specified by:
isNotEqualToin interfaceNumberExpression- Parameters:
other- the constant valueepsilon- the permitted tolerance- Returns:
- the new
BooleanBinding
-
isNotEqualTo
public BooleanBinding isNotEqualTo(float other, double epsilon)
Description copied from interface:NumberExpressionCreates a newBooleanBindingthat holdstrueif thisNumberExpressionis not equal to a constant value (with a tolerance).Two operands
aandbare considered not equal ifMath.abs(a-b) > epsilon.Allowing a small tolerance is recommended when comparing floating-point numbers.
- Specified by:
isNotEqualToin interfaceNumberExpression- Parameters:
other- the constant valueepsilon- the permitted tolerance- Returns:
- the new
BooleanBinding
-
isNotEqualTo
public BooleanBinding isNotEqualTo(long other)
Description copied from interface:NumberExpressionCreates a newBooleanBindingthat holdstrueif thisNumberExpressionis not equal to a constant value.When comparing floating-point numbers it is recommended to use the
isNotEqualTo()method that allows a small tolerance.- Specified by:
isNotEqualToin interfaceNumberExpression- Parameters:
other- the constant value- Returns:
- the new
BooleanBinding
-
isNotEqualTo
public BooleanBinding isNotEqualTo(long other, double epsilon)
Description copied from interface:NumberExpressionCreates a newBooleanBindingthat holdstrueif thisNumberExpressionis not equal to a constant value (with a tolerance).Two operands
aandbare considered not equal ifMath.abs(a-b) > epsilon.Allowing a small tolerance is recommended when comparing floating-point numbers.
- Specified by:
isNotEqualToin interfaceNumberExpression- Parameters:
other- the constant valueepsilon- the permitted tolerance- Returns:
- the new
BooleanBinding
-
isNotEqualTo
public BooleanBinding isNotEqualTo(int other)
Description copied from interface:NumberExpressionCreates a newBooleanBindingthat holdstrueif thisNumberExpressionis not equal to a constant value.When comparing floating-point numbers it is recommended to use the
isNotEqualTo()method that allows a small tolerance.- Specified by:
isNotEqualToin interfaceNumberExpression- Parameters:
other- the constant value- Returns:
- the new
BooleanBinding
-
isNotEqualTo
public BooleanBinding isNotEqualTo(int other, double epsilon)
Description copied from interface:NumberExpressionCreates a newBooleanBindingthat holdstrueif thisNumberExpressionis not equal to a constant value (with a tolerance).Two operands
aandbare considered not equal ifMath.abs(a-b) > epsilon.Allowing a small tolerance is recommended when comparing floating-point numbers.
- Specified by:
isNotEqualToin interfaceNumberExpression- Parameters:
other- the constant valueepsilon- the permitted tolerance- Returns:
- the new
BooleanBinding
-
greaterThan
public BooleanBinding greaterThan(ObservableNumberValue other)
Description copied from interface:NumberExpressionCreates a newBooleanBindingthat holdstrueif thisNumberExpressionis greater than anotherObservableNumberValue.- Specified by:
greaterThanin interfaceNumberExpression- Parameters:
other- the secondObservableNumberValue- Returns:
- the new
BooleanBinding
-
greaterThan
public BooleanBinding greaterThan(double other)
Description copied from interface:NumberExpressionCreates a newBooleanBindingthat holdstrueif thisNumberExpressionis greater than a constant value.- Specified by:
greaterThanin interfaceNumberExpression- Parameters:
other- the constant value- Returns:
- the new
BooleanBinding
-
greaterThan
public BooleanBinding greaterThan(float other)
Description copied from interface:NumberExpressionCreates a newBooleanBindingthat holdstrueif thisNumberExpressionis greater than a constant value.- Specified by:
greaterThanin interfaceNumberExpression- Parameters:
other- the constant value- Returns:
- the new
BooleanBinding
-
greaterThan
public BooleanBinding greaterThan(long other)
Description copied from interface:NumberExpressionCreates a newBooleanBindingthat holdstrueif thisNumberExpressionis greater than a constant value.- Specified by:
greaterThanin interfaceNumberExpression- Parameters:
other- the constant value- Returns:
- the new
BooleanBinding
-
greaterThan
public BooleanBinding greaterThan(int other)
Description copied from interface:NumberExpressionCreates a newBooleanBindingthat holdstrueif thisNumberExpressionis greater than a constant value.- Specified by:
greaterThanin interfaceNumberExpression- Parameters:
other- the constant value- Returns:
- the new
BooleanBinding
-
lessThan
public BooleanBinding lessThan(ObservableNumberValue other)
Description copied from interface:NumberExpressionCreates a newBooleanBindingthat holdstrueif thisNumberExpressionis lesser than anotherObservableNumberValue.- Specified by:
lessThanin interfaceNumberExpression- Parameters:
other- the secondObservableNumberValue- Returns:
- the new
BooleanBinding
-
lessThan
public BooleanBinding lessThan(double other)
Description copied from interface:NumberExpressionCreates a newBooleanBindingthat holdstrueif thisNumberExpressionis lesser than a constant value.- Specified by:
lessThanin interfaceNumberExpression- Parameters:
other- the constant value- Returns:
- the new
BooleanBinding
-
lessThan
public BooleanBinding lessThan(float other)
Description copied from interface:NumberExpressionCreates a newBooleanBindingthat holdstrueif thisNumberExpressionis lesser than a constant value.- Specified by:
lessThanin interfaceNumberExpression- Parameters:
other- the constant value- Returns:
- the new
BooleanBinding
-
lessThan
public BooleanBinding lessThan(long other)
Description copied from interface:NumberExpressionCreates a newBooleanBindingthat holdstrueif thisNumberExpressionis lesser than a constant value.- Specified by:
lessThanin interfaceNumberExpression- Parameters:
other- the constant value- Returns:
- the new
BooleanBinding
-
lessThan
public BooleanBinding lessThan(int other)
Description copied from interface:NumberExpressionCreates a newBooleanBindingthat holdstrueif thisNumberExpressionis lesser than a constant value.- Specified by:
lessThanin interfaceNumberExpression- Parameters:
other- the constant value- Returns:
- the new
BooleanBinding
-
greaterThanOrEqualTo
public BooleanBinding greaterThanOrEqualTo(ObservableNumberValue other)
Description copied from interface:NumberExpressionCreates a newBooleanBindingthat holdstrueif thisNumberExpressionis greater than or equal to anotherObservableNumberValue.- Specified by:
greaterThanOrEqualToin interfaceNumberExpression- Parameters:
other- the secondObservableNumberValue- Returns:
- the new
BooleanBinding
-
greaterThanOrEqualTo
public BooleanBinding greaterThanOrEqualTo(double other)
Description copied from interface:NumberExpressionCreates a newBooleanBindingthat holdstrueif thisNumberExpressionis greater than or equal to a constant value.- Specified by:
greaterThanOrEqualToin interfaceNumberExpression- Parameters:
other- the constant value- Returns:
- the new
BooleanBinding
-
greaterThanOrEqualTo
public BooleanBinding greaterThanOrEqualTo(float other)
Description copied from interface:NumberExpressionCreates a newBooleanBindingthat holdstrueif thisNumberExpressionis greater than or equal to a constant value.- Specified by:
greaterThanOrEqualToin interfaceNumberExpression- Parameters:
other- the constant value- Returns:
- the new
BooleanBinding
-
greaterThanOrEqualTo
public BooleanBinding greaterThanOrEqualTo(long other)
Description copied from interface:NumberExpressionCreates a newBooleanBindingthat holdstrueif thisNumberExpressionis greater than or equal to a constant value.- Specified by:
greaterThanOrEqualToin interfaceNumberExpression- Parameters:
other- the constant value- Returns:
- the new
BooleanBinding
-
greaterThanOrEqualTo
public BooleanBinding greaterThanOrEqualTo(int other)
Description copied from interface:NumberExpressionCreates a newBooleanBindingthat holdstrueif thisNumberExpressionis greater than or equal to a constant value.- Specified by:
greaterThanOrEqualToin interfaceNumberExpression- Parameters:
other- the constant value- Returns:
- the new
BooleanBinding
-
lessThanOrEqualTo
public BooleanBinding lessThanOrEqualTo(ObservableNumberValue other)
Description copied from interface:NumberExpressionCreates a newBooleanBindingthat holdstrueif thisNumberExpressionis less than or equal to anotherObservableNumberValue.- Specified by:
lessThanOrEqualToin interfaceNumberExpression- Parameters:
other- the secondObservableNumberValue- Returns:
- the new
BooleanBinding
-
lessThanOrEqualTo
public BooleanBinding lessThanOrEqualTo(double other)
Description copied from interface:NumberExpressionCreates a newBooleanBindingthat holdstrueif thisNumberExpressionis less than or equal to a constant value.- Specified by:
lessThanOrEqualToin interfaceNumberExpression- Parameters:
other- the constant value- Returns:
- the new
BooleanBinding
-
lessThanOrEqualTo
public BooleanBinding lessThanOrEqualTo(float other)
Description copied from interface:NumberExpressionCreates a newBooleanBindingthat holdstrueif thisNumberExpressionis less than or equal to a constant value.- Specified by:
lessThanOrEqualToin interfaceNumberExpression- Parameters:
other- the constant value- Returns:
- the new
BooleanBinding
-
lessThanOrEqualTo
public BooleanBinding lessThanOrEqualTo(long other)
Description copied from interface:NumberExpressionCreates a newBooleanBindingthat holdstrueif thisNumberExpressionis less than or equal to a constant value.- Specified by:
lessThanOrEqualToin interfaceNumberExpression- Parameters:
other- the constant value- Returns:
- the new
BooleanBinding
-
lessThanOrEqualTo
public BooleanBinding lessThanOrEqualTo(int other)
Description copied from interface:NumberExpressionCreates a newBooleanBindingthat holdstrueif thisNumberExpressionis less than or equal to a constant value.- Specified by:
lessThanOrEqualToin interfaceNumberExpression- Parameters:
other- the constant value- Returns:
- the new
BooleanBinding
-
asString
public StringBinding asString()
Description copied from interface:NumberExpressionCreates aStringBindingthat holds the value of theNumberExpressionturned into aString. If the value of thisNumberExpressionchanges, the value of theStringBindingwill be updated automatically.The conversion is done without any formatting applied.
- Specified by:
asStringin interfaceNumberExpression- Returns:
- the new
StringBinding
-
asString
public StringBinding asString(String format)
Description copied from interface:NumberExpressionCreates aStringBindingthat holds the value of theNumberExpressionturned into aString. If the value of thisNumberExpressionchanges, the value of theStringBindingwill be updated automatically.The result is formatted according to the formatting
String. Seejava.util.Formatterfor formatting rules.- Specified by:
asStringin interfaceNumberExpression- Parameters:
format- the formattingString- Returns:
- the new
StringBinding
-
asString
public StringBinding asString(Locale locale, String format)
Description copied from interface:NumberExpressionCreates aStringBindingthat holds the value of theNumberExpressionturned into aString. If the value of thisNumberExpressionchanges, the value of theStringBindingwill be updated automatically.The result is formatted according to the formatting
Stringand the passed inLocale. Seejava.util.Formatterfor formatting rules. Seejava.util.Localefor details onLocale.- Specified by:
asStringin interfaceNumberExpression- Parameters:
locale- the Locale to be usedformat- the formattingString- Returns:
- the new
StringBinding
-
-