Class BigDecimalBinding
java.lang.Object
io.github.mmm.event.AbstractEventSource<ObservableEvent<BigDecimal>,ObservableEventListener<? super BigDecimal>>
io.github.mmm.event.AbstractEventSender<ObservableEvent<BigDecimal>,ObservableEventListener<? super BigDecimal>>
io.github.mmm.value.observable.AbstractObservableValue<BigDecimal>
io.github.mmm.value.observable.Binding<BigDecimal>
io.github.mmm.value.observable.number.NumberBinding<BigDecimal>
io.github.mmm.value.observable.number.bigdecimal.BigDecimalBinding
- All Implemented Interfaces:
EventSource<ObservableEvent<BigDecimal>,,ObservableEventListener<? super BigDecimal>> ComparableExpression<BigDecimal>,Expression<BigDecimal>,BigDecimalExpression,ObservableBigDecimalValue,ReadableBigDecimalValue,NumberExpression<BigDecimal>,ObservableNumberValue<BigDecimal>,ReadableNumberValue<BigDecimal>,ObservableSimpleValue<BigDecimal>,ReadableSimpleValue<BigDecimal>,ObservableValue<BigDecimal>,ReadableValue<BigDecimal>,Supplier<BigDecimal>
- Since:
- 1.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionBigDecimalBinding(Supplier<BigDecimal> expression, ObservableValue<?>... dependencies) The constructor. -
Method Summary
Modifier and TypeMethodDescriptionstatic BigDecimalExpressionadd(NumberExpression<?> expression, ObservableValue<? extends Number> other) static BigDecimalExpressionadd(NumberExpression<?> expression, Number constant) static BigDecimalExpressionadd(NumberExpression<?> expression, BigDecimal constant) static BigDecimalExpressionaddAll(ObservableValue<? extends Number>... observables) static BigDecimalExpressioncast(NumberExpression<?> expression) static BigDecimalExpressiondivide(NumberExpression<?> expression, ObservableValue<? extends Number> other) static BigDecimalExpressiondivide(NumberExpression<?> expression, Number constant) static BigDecimalExpressiondivide(NumberExpression<?> expression, BigDecimal constant) static BigDecimalExpressiondivideAll(ObservableValue<? extends Number>... observables) static BigDecimalExpressionmultiply(NumberExpression<?> expression, ObservableValue<? extends Number> other) static BigDecimalExpressionmultiply(NumberExpression<?> expression, Number constant) static BigDecimalExpressionmultiply(NumberExpression<?> expression, BigDecimal constant) static BigDecimalExpressionmultiplyAll(ObservableValue<? extends Number>... observables) static BigDecimalExpressionnegate(BigDecimalExpression expression) static BigDecimalExpressionsubtract(NumberExpression<?> expression, ObservableValue<? extends Number> other) static BigDecimalExpressionsubtract(NumberExpression<?> expression, Number constant) static BigDecimalExpressionsubtract(NumberExpression<?> expression, BigDecimal constant) static BigDecimalExpressionsubtractAll(ObservableValue<? extends Number>... observables) Methods inherited from class io.github.mmm.value.observable.Binding
bind, dispose, get, invalidate, isValid, toString, unbindMethods inherited from class io.github.mmm.value.observable.AbstractObservableValue
doAddListener, fireChange, fireEvent, fireEvent, fireEventFor, fireEventFor, fireEventWithOldValue, hasChangeAwareListeners, removeListener, toStringMethods inherited from class io.github.mmm.event.AbstractEventSender
getEventAdapter, hasListeners, makeReadOnlyMethods inherited from class io.github.mmm.event.AbstractEventSource
addListenerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface io.github.mmm.value.observable.number.bigdecimal.BigDecimalExpression
add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, divide, divide, divide, divide, divide, divide, divide, divide, divide, divide, divide, divide, divide, divide, divide, divide, multiply, multiply, multiply, multiply, multiply, multiply, multiply, multiply, multiply, multiply, multiply, multiply, multiply, multiply, multiply, multiply, negate, subtract, subtract, subtract, subtract, subtract, subtract, subtract, subtract, subtract, subtract, subtract, subtract, subtract, subtract, subtract, subtractMethods inherited from interface io.github.mmm.value.observable.comparable.ComparableExpression
greaterThan, greaterThan, greaterThanOrEqualTo, greaterThanOrEqualTo, lessThan, lessThan, lessThanOrEqualTo, lessThanOrEqualToMethods inherited from interface io.github.mmm.event.EventSource
addListener, addListener, addWeakListener, removeListenerMethods inherited from interface io.github.mmm.value.observable.Expression
asString, dispose, isEqualTo, isEqualTo, isNotEqualTo, isNotEqualTo, isNotNull, isNullMethods inherited from interface io.github.mmm.value.observable.number.NumberExpression
add, add, divide, divide, multiply, multiply, subtract, subtractMethods inherited from interface io.github.mmm.value.observable.ObservableValue
toStringMethods inherited from interface io.github.mmm.value.observable.number.bigdecimal.ReadableBigDecimalValue
getFallbackSafeValue, getValueClass, parseMethods inherited from interface io.github.mmm.value.observable.number.ReadableNumberValue
byteValue, doubleValue, floatValue, intValue, longValue, shortValueMethods inherited from interface io.github.mmm.value.observable.object.ReadableSimpleValue
getAsStringMethods inherited from interface io.github.mmm.value.ReadableValue
get, getSafe
-
Constructor Details
-
BigDecimalBinding
The constructor.- Parameters:
expression- theSupplierto compute thevalue.dependencies- theObservableValues theexpressiondepends on.
-
-
Method Details
-
negate
- Parameters:
expression- theBigDecimalExpressionto negate.- Returns:
- a new
BigDecimalExpressionholding the negation of thevaluefrom the givenBigDecimalExpression. - See Also:
-
cast
- Parameters:
expression- theNumberExpressionto convert.- Returns:
- the given
NumberExpressionconverted to aBigDecimalExpression.
-
add
public static BigDecimalExpression add(NumberExpression<?> expression, ObservableValue<? extends Number> other) - Parameters:
expression- theBigDecimalExpressionto add.other- theObservableValueto add.- Returns:
- a new
BigDecimalExpressionholding the sum of thevalues of the first and the second givenObservableValues. - See Also:
-
add
- Parameters:
expression- theNumberExpressionto add.constant- the constantNumberto add.- Returns:
- a new
BigDecimalExpressionholding the sum of thevaluefrom the givenBigDecimalExpressionwith the givenconstant. - See Also:
-
add
- Parameters:
expression- theBigDecimalExpressionto add.constant- the constantBigDecimalto add.- Returns:
- a new
BigDecimalExpressionholding the sum of thevaluefrom the givenBigDecimalExpressionwith the givenconstant. - See Also:
-
addAll
@SafeVarargs public static BigDecimalExpression addAll(ObservableValue<? extends Number>... observables) - Parameters:
observables- theObservableValues to add.- Returns:
- a new
BigDecimalExpressionholding the sum of thevalues from the givenObservableValues.
-
subtract
public static BigDecimalExpression subtract(NumberExpression<?> expression, ObservableValue<? extends Number> other) - Parameters:
expression- theBigDecimalExpression.other- theObservableValueto subtract.- Returns:
- a new
BigDecimalExpressionholding the difference of thevalues of the first and the second givenObservableValues. - See Also:
-
subtract
- Parameters:
expression- theNumberExpression.constant- the constantNumberto subtract.- Returns:
- a new
BigDecimalExpressionholding the difference of thevaluefrom the givenBigDecimalExpressionwith the givenconstant. - See Also:
-
subtract
- Parameters:
expression- theBigDecimalExpression.constant- the constantBigDecimalto subtract.- Returns:
- a new
BigDecimalExpressionholding the difference of thevaluefrom the givenBigDecimalExpressionwith the givenconstant. - See Also:
-
subtractAll
@SafeVarargs public static BigDecimalExpression subtractAll(ObservableValue<? extends Number>... observables) - Parameters:
observables- theObservableValues to subtract.- Returns:
- a new
BigDecimalExpressionholding the difference of thevalues from the givenObservableValues.
-
multiply
public static BigDecimalExpression multiply(NumberExpression<?> expression, ObservableValue<? extends Number> other) - Parameters:
expression- theBigDecimalExpression.other- theObservableValueto multiply.- Returns:
- a new
BigDecimalExpressionholding the product of thevalues of the first and the second givenObservableValues. - See Also:
-
multiply
- Parameters:
expression- theNumberExpression.constant- the constantNumberto multiply.- Returns:
- a new
BigDecimalExpressionholding the product of thevaluefrom the givenBigDecimalExpressionmultiplied with the givenconstant. - See Also:
-
multiply
- Parameters:
expression- theBigDecimalExpression.constant- the constantBigDecimalto multiply.- Returns:
- a new
BigDecimalExpressionholding the product of thevaluefrom the givenBigDecimalExpressionmultiplied with the givenconstant. - See Also:
-
multiplyAll
@SafeVarargs public static BigDecimalExpression multiplyAll(ObservableValue<? extends Number>... observables) - Parameters:
observables- theObservableValues to multiply.- Returns:
- a new
BigDecimalExpressionholding the product of thevalues from the givenObservableValues.
-
divide
public static BigDecimalExpression divide(NumberExpression<?> expression, ObservableValue<? extends Number> other) - Parameters:
expression- theBigDecimalExpression.other- theObservableValueto divide.- Returns:
- a new
BigDecimalExpressionholding the quotient of thevalues of the first and the second givenObservableValues. - See Also:
-
divide
- Parameters:
expression- theNumberExpression.constant- the constantNumberto divide.- Returns:
- a new
BigDecimalExpressionholding the quotient of thevaluefrom the givenBigDecimalExpressiondivided by the givenconstant. - See Also:
-
divide
- Parameters:
expression- theBigDecimalExpression.constant- the constantBigDecimalto divide.- Returns:
- a new
BigDecimalExpressionholding the quotient of thevaluefrom the givenBigDecimalExpressiondivided by the givenconstant. - See Also:
-
divideAll
@SafeVarargs public static BigDecimalExpression divideAll(ObservableValue<? extends Number>... observables) - Parameters:
observables- theObservableValues to divide.- Returns:
- a new
BigDecimalExpressionholding the quotient of thevalues from the givenObservableValues.
-