Class NumberExpressionBase
- All Implemented Interfaces:
NumberExpression, Observable, ObservableNumberValue, ObservableValue<Number>
- Direct Known Subclasses:
DoubleExpression, FloatExpression, IntegerExpression, LongExpression
NumberExpressionBase contains 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:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionadd(ObservableNumberValue other) Creates a newNumberBindingthat calculates the sum of thisNumberExpressionand anotherObservableNumberValue.asString()divide(ObservableNumberValue other) Creates a newNumberBindingthat calculates the division of thisNumberExpressionand anotherObservableNumberValue.greaterThan(double other) Creates a newBooleanBindingthat holdstrueif thisNumberExpressionis greater than a constant value.greaterThan(float other) Creates a newBooleanBindingthat holdstrueif thisNumberExpressionis greater than a constant value.greaterThan(int other) Creates a newBooleanBindingthat holdstrueif thisNumberExpressionis greater than a constant value.greaterThan(long other) Creates a newBooleanBindingthat holdstrueif thisNumberExpressionis greater than a constant value.greaterThan(ObservableNumberValue other) Creates a newBooleanBindingthat holdstrueif thisNumberExpressionis greater than anotherObservableNumberValue.greaterThanOrEqualTo(double other) Creates a newBooleanBindingthat holdstrueif thisNumberExpressionis greater than or equal to a constant value.greaterThanOrEqualTo(float other) Creates a newBooleanBindingthat holdstrueif thisNumberExpressionis greater than or equal to a constant value.greaterThanOrEqualTo(int other) Creates a newBooleanBindingthat holdstrueif thisNumberExpressionis greater than or equal to a constant value.greaterThanOrEqualTo(long other) Creates a newBooleanBindingthat holdstrueif thisNumberExpressionis greater than or equal to a constant value.Creates a newBooleanBindingthat holdstrueif thisNumberExpressionis greater than or equal to anotherObservableNumberValue.isEqualTo(double other, double epsilon) Creates a newBooleanBindingthat holdstrueif thisNumberExpressionis equal to a constant value (with a tolerance).isEqualTo(float other, double epsilon) Creates a newBooleanBindingthat holdstrueif thisNumberExpressionis equal to a constant value (with a tolerance).isEqualTo(int other) isEqualTo(int other, double epsilon) Creates a newBooleanBindingthat holdstrueif thisNumberExpressionis equal to a constant value (with a tolerance).isEqualTo(long other) isEqualTo(long other, double epsilon) Creates a newBooleanBindingthat holdstrueif thisNumberExpressionis equal to a constant value (with a tolerance).isEqualTo(ObservableNumberValue other) isEqualTo(ObservableNumberValue other, double epsilon) Creates a newBooleanBindingthat holdstrueif this and anotherObservableNumberValueare equal (with a tolerance).isNotEqualTo(double other, double epsilon) Creates a newBooleanBindingthat holdstrueif thisNumberExpressionis not equal to a constant value (with a tolerance).isNotEqualTo(float other, double epsilon) Creates a newBooleanBindingthat holdstrueif thisNumberExpressionis not equal to a constant value (with a tolerance).isNotEqualTo(int other) Creates a newBooleanBindingthat holdstrueif thisNumberExpressionis not equal to a constant value.isNotEqualTo(int other, double epsilon) Creates a newBooleanBindingthat holdstrueif thisNumberExpressionis not equal to a constant value (with a tolerance).isNotEqualTo(long other) Creates a newBooleanBindingthat holdstrueif thisNumberExpressionis not equal to a constant value.isNotEqualTo(long other, double epsilon) Creates a newBooleanBindingthat holdstrueif thisNumberExpressionis not equal to a constant value (with a tolerance).Creates a newBooleanBindingthat holdstrueif this and anotherObservableNumberValueare not equal.isNotEqualTo(ObservableNumberValue other, double epsilon) Creates a newBooleanBindingthat holdstrueif this and anotherObservableNumberValueare not equal (with a tolerance).lessThan(double other) Creates a newBooleanBindingthat holdstrueif thisNumberExpressionis lesser than a constant value.lessThan(float other) Creates a newBooleanBindingthat holdstrueif thisNumberExpressionis lesser than a constant value.lessThan(int other) Creates a newBooleanBindingthat holdstrueif thisNumberExpressionis lesser than a constant value.lessThan(long other) Creates a newBooleanBindingthat holdstrueif thisNumberExpressionis lesser than a constant value.lessThan(ObservableNumberValue other) Creates a newBooleanBindingthat holdstrueif thisNumberExpressionis lesser than anotherObservableNumberValue.lessThanOrEqualTo(double other) Creates a newBooleanBindingthat holdstrueif thisNumberExpressionis less than or equal to a constant value.lessThanOrEqualTo(float other) Creates a newBooleanBindingthat holdstrueif thisNumberExpressionis less than or equal to a constant value.lessThanOrEqualTo(int other) Creates a newBooleanBindingthat holdstrueif thisNumberExpressionis less than or equal to a constant value.lessThanOrEqualTo(long other) Creates a newBooleanBindingthat holdstrueif thisNumberExpressionis less than or equal to a constant value.Creates a newBooleanBindingthat holdstrueif thisNumberExpressionis less than or equal to anotherObservableNumberValue.multiply(ObservableNumberValue other) Creates a newNumberBindingthat calculates the product of thisNumberExpressionand anotherObservableNumberValue.static <S extends Number>
NumberExpressionBaseReturns anNumberExpressionBasethat wraps aObservableNumberValue.subtract(ObservableNumberValue other) Creates a newNumberBindingthat calculates the difference of thisNumberExpressionand anotherObservableNumberValue.Methods declared in class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods declared in interface NumberExpression
add, add, add, add, divide, divide, divide, divide, multiply, multiply, multiply, multiply, negate, subtract, subtract, subtract, subtractModifier and TypeMethodDescriptionadd(double other) Creates a newNumberBindingthat calculates the sum of thisNumberExpressionand a constant value.add(float other) Creates a newNumberBindingthat calculates the sum of thisNumberExpressionand a constant value.add(int other) Creates a newNumberBindingthat calculates the sum of thisNumberExpressionand a constant value.add(long other) Creates a newNumberBindingthat calculates the sum of thisNumberExpressionand a constant value.divide(double other) Creates a newNumberBindingthat calculates the division of thisNumberExpressionand a constant value.divide(float other) Creates a newNumberBindingthat calculates the division of thisNumberExpressionand a constant value.divide(int other) Creates a newNumberBindingthat calculates the division of thisNumberExpressionand a constant value.divide(long other) Creates a newNumberBindingthat calculates the division of thisNumberExpressionand a constant value.multiply(double other) Creates a newNumberBindingthat calculates the product of thisNumberExpressionand a constant value.multiply(float other) Creates a newNumberBindingthat calculates the product of thisNumberExpressionand a constant value.multiply(int other) Creates a newNumberBindingthat calculates the product of thisNumberExpressionand a constant value.multiply(long other) Creates a newNumberBindingthat calculates the product of thisNumberExpressionand a constant value.negate()Creates a newNumberBindingthat calculates the negation ofNumberExpression.subtract(double other) Creates a newNumberBindingthat calculates the difference of thisNumberExpressionand a constant value.subtract(float other) Creates a newNumberBindingthat calculates the difference of thisNumberExpressionand a constant value.subtract(int other) Creates a newNumberBindingthat calculates the difference of thisNumberExpressionand a constant value.subtract(long other) Creates a newNumberBindingthat calculates the difference of thisNumberExpressionand a constant value.Methods declared in interface Observable
addListener, removeListener, subscribeModifier and TypeMethodDescriptionvoidaddListener(InvalidationListener listener) Adds anInvalidationListenerwhich will be notified whenever theObservablebecomes invalid.voidremoveListener(InvalidationListener listener) Removes the given listener from the list of listeners, that are notified whenever the value of theObservablebecomes invalid.default SubscriptionCreates aSubscriptionon thisObservablewhich callsinvalidationSubscriberwhenever it becomes invalid.Methods declared in interface ObservableNumberValue
doubleValue, floatValue, intValue, longValueModifier and TypeMethodDescriptiondoubleReturns the value of thisObservableNumberValueas adouble.floatReturns the value of thisObservableNumberValueas afloat.intintValue()Returns the value of thisObservableNumberValueas anint.longReturns the value of thisObservableNumberValueas along.Methods declared in interface ObservableValue
addListener, flatMap, getValue, map, orElse, removeListener, subscribe, subscribe, whenModifier and TypeMethodDescriptionvoidaddListener(ChangeListener<? super Number> listener) Adds aChangeListenerwhich will be notified whenever the value of theObservableValuechanges.default <U> ObservableValue<U> flatMap(Function<? super Number, ? extends ObservableValue<? extends U>> mapper) Returns anObservableValuethat holds the value of anObservableValueproduced by applying the given mapping function on this value.getValue()Returns the current value of thisObservableValuedefault <U> ObservableValue<U> Returns anObservableValuethat holds the result of applying the given mapping function on this value.default ObservableValue<Number> Returns anObservableValuethat holds this value, or the given constant if it isnull.voidremoveListener(ChangeListener<? super Number> listener) Removes the given listener from the list of listeners that are notified whenever the value of theObservableValuechanges.default Subscriptionsubscribe(BiConsumer<? super Number, ? super Number> changeSubscriber) Creates aSubscriptionon thisObservableValuewhich calls the givenchangeSubscriberwith the old and new value whenever its value changes.default SubscriptionCreates aSubscriptionon thisObservableValuewhich immediately provides the current value to the givenvalueSubscriber, followed by any subsequent values whenever its value changes.default ObservableValue<Number> when(ObservableValue<Boolean> condition) Returns anObservableValuethat holds this value and is updated only whenconditionholdstrue.
-
Constructor Details
-
NumberExpressionBase
public NumberExpressionBase()Creates a defaultNumberExpressionBase.
-
-
Method Details
-
numberExpression
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
-