Class BigIntegerBinding
- java.lang.Object
-
- io.github.mmm.event.AbstractEventSource<ObservableEvent<V>,ObservableEventListener<? super V>>
-
- io.github.mmm.value.observable.AbstractObservableValue<V>
-
- io.github.mmm.value.observable.Binding<N>
-
- io.github.mmm.value.observable.number.NumberBinding<BigInteger>
-
- io.github.mmm.value.observable.number.biginteger.BigIntegerBinding
-
- All Implemented Interfaces:
EventSource<ObservableEvent<BigInteger>,ObservableEventListener<? super BigInteger>>,ComparableExpression<BigInteger>,Expression<BigInteger>,BigIntegerExpression,ObservableBigIntegerValue,ReadableBigIntegerValue,NumberExpression<BigInteger>,ObservableNumberValue<BigInteger>,ReadableNumberValue<BigInteger>,ObservableSimpleValue<BigInteger>,ReadableSimpleValue<BigInteger>,ObservableValue<BigInteger>,ReadableTypedValue<BigInteger>,ReadableValue<BigInteger>,Supplier<BigInteger>
public class BigIntegerBinding extends NumberBinding<BigInteger> implements BigIntegerExpression
- Since:
- 1.0.0
-
-
Constructor Summary
Constructors Constructor Description BigIntegerBinding(Supplier<BigInteger> expression, ObservableValue<?>... dependencies)The constructor.
-
Method Summary
-
Methods inherited from class io.github.mmm.value.observable.Binding
bind, dispose, get, invalidate, isValid, toString, unbind
-
Methods inherited from class io.github.mmm.value.observable.AbstractObservableValue
addListener, fireChange, fireEvent, fireEvent, fireEventFor, fireEventFor, fireEventWithOldValue, hasChangeAwareListeners, removeListener, toString
-
Methods inherited from class io.github.mmm.event.AbstractEventSource
getEventAdapter, hasListeners
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface io.github.mmm.value.observable.number.biginteger.BigIntegerExpression
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, subtract
-
Methods inherited from interface io.github.mmm.value.observable.comparable.ComparableExpression
greaterThan, greaterThan, greaterThanOrEqualTo, greaterThanOrEqualTo, lessThan, lessThan, lessThanOrEqualTo, lessThanOrEqualTo
-
Methods inherited from interface io.github.mmm.event.EventSource
addListener, addListener, addWeakListener, removeListener
-
Methods inherited from interface io.github.mmm.value.observable.Expression
asString, dispose, isEqualTo, isEqualTo, isNotEqualTo, isNotEqualTo, isNotNull, isNull
-
Methods inherited from interface io.github.mmm.value.observable.number.NumberExpression
add, add, divide, divide, multiply, multiply, subtract, subtract
-
Methods inherited from interface io.github.mmm.value.observable.ObservableValue
toString
-
Methods inherited from interface io.github.mmm.value.observable.number.biginteger.ReadableBigIntegerValue
getSafe, getValueClass
-
Methods inherited from interface io.github.mmm.value.observable.number.ReadableNumberValue
byteValue, doubleValue, floatValue, intValue, longValue, shortValue
-
Methods inherited from interface io.github.mmm.value.observable.object.ReadableSimpleValue
getAsString
-
Methods inherited from interface io.github.mmm.value.ReadableValue
get
-
-
-
-
Constructor Detail
-
BigIntegerBinding
public BigIntegerBinding(Supplier<BigInteger> expression, ObservableValue<?>... dependencies)
The constructor.- Parameters:
expression- theSupplierto compute thevalue.dependencies- theObservableValues theexpressiondepends on.
-
-
Method Detail
-
negate
public static BigIntegerExpression negate(BigIntegerExpression expression)
- Parameters:
expression- theBigIntegerExpressionto negate.- Returns:
- a new
BigIntegerExpressionholding the negation of thevaluefrom the givenBigIntegerExpression. - See Also:
NumberExpression.negate()
-
cast
public static BigIntegerExpression cast(NumberExpression<?> expression)
- Parameters:
expression- theNumberExpressionto convert.- Returns:
- the given
NumberExpressionconverted to aBigDecimalExpression.
-
add
public static BigIntegerExpression add(NumberExpression<?> expression, ObservableValue<? extends Number> other)
- Parameters:
expression- theNumberExpressionto add.other- theObservableValueto add.- Returns:
- a new
BigIntegerExpressionholding the sum of thevalues of the first and the second givenObservableValues. - See Also:
NumberExpression.add(ObservableBigIntegerValue)
-
add
public static BigIntegerExpression add(NumberExpression<?> expression, Number constant)
- Parameters:
expression- theNumberExpressionto add.constant- the constantNumberto add.- Returns:
- a new
BigIntegerExpressionholding the sum of thevaluefrom the givenBigIntegerExpressionwith the givenconstant. - See Also:
NumberExpression.add(ObservableBigIntegerValue)
-
add
public static BigIntegerExpression add(NumberExpression<?> expression, BigInteger constant)
- Parameters:
expression- theNumberExpressionto add.constant- the constantBigIntegerto add.- Returns:
- a new
BigIntegerExpressionholding the sum of thevaluefrom the givenBigIntegerExpressionwith the givenconstant. - See Also:
NumberExpression.add(ObservableBigIntegerValue)
-
addAll
@SafeVarargs public static BigIntegerExpression addAll(ObservableValue<? extends Number>... observables)
- Parameters:
observables- theObservableValues to add.- Returns:
- a new
BigIntegerExpressionholding the sum of thevalues from the givenObservableValues.
-
subtract
public static BigIntegerExpression subtract(NumberExpression<?> expression, ObservableValue<? extends Number> other)
- Parameters:
expression- theNumberExpression.other- theObservableValueto subtract.- Returns:
- a new
BigIntegerExpressionholding the difference of thevalues of the first and the second givenObservableValues. - See Also:
NumberExpression.subtract(ObservableBigIntegerValue)
-
subtract
public static BigIntegerExpression subtract(NumberExpression<?> expression, Number constant)
- Parameters:
expression- theNumberExpression.constant- the constantNumberto subtract.- Returns:
- a new
BigIntegerExpressionholding the difference of thevaluefrom the givenBigIntegerExpressionwith the givenconstant. - See Also:
NumberExpression.subtract(ObservableBigIntegerValue)
-
subtract
public static BigIntegerExpression subtract(NumberExpression<?> expression, BigInteger constant)
- Parameters:
expression- theNumberExpression.constant- the constantBigIntegerto subtract.- Returns:
- a new
BigIntegerExpressionholding the difference of thevaluefrom the givenBigIntegerExpressionwith the givenconstant. - See Also:
NumberExpression.subtract(ObservableBigIntegerValue)
-
subtractAll
@SafeVarargs public static BigIntegerExpression subtractAll(ObservableValue<? extends Number>... observables)
- Parameters:
observables- theObservableValues to subtract.- Returns:
- a new
BigIntegerExpressionholding the difference of thevalues from the givenObservableValues.
-
multiply
public static BigIntegerExpression multiply(NumberExpression<?> expression, ObservableValue<? extends Number> other)
- Parameters:
expression- theNumberExpression.other- theObservableValueto multiply.- Returns:
- a new
BigIntegerExpressionholding the product of thevalues of the first and the second givenObservableValues. - See Also:
NumberExpression.multiply(ObservableBigIntegerValue)
-
multiply
public static BigIntegerExpression multiply(NumberExpression<?> expression, Number constant)
- Parameters:
expression- theNumberExpression.constant- the constantNumberto multiply.- Returns:
- a new
BigIntegerExpressionholding the product of thevaluefrom the givenBigIntegerExpressionmultiplied with the givenconstant. - See Also:
NumberExpression.multiply(ObservableBigIntegerValue)
-
multiply
public static BigIntegerExpression multiply(NumberExpression<?> expression, BigInteger constant)
- Parameters:
expression- theNumberExpression.constant- the constantBigIntegerto multiply.- Returns:
- a new
BigIntegerExpressionholding the product of thevaluefrom the givenBigIntegerExpressionmultiplied with the givenconstant. - See Also:
NumberExpression.multiply(ObservableBigIntegerValue)
-
multiplyAll
@SafeVarargs public static BigIntegerExpression multiplyAll(ObservableValue<? extends Number>... observables)
- Parameters:
observables- theObservableValues to multiply.- Returns:
- a new
BigIntegerExpressionholding the product of thevalues from the givenObservableValues.
-
divide
public static BigIntegerExpression divide(NumberExpression<?> expression, ObservableValue<? extends Number> other)
- Parameters:
expression- theNumberExpression.other- theObservableValueto divide.- Returns:
- a new
BigIntegerExpressionholding the quotient of thevalues of the first and the second givenObservableValues. - See Also:
NumberExpression.divide(ObservableBigIntegerValue)
-
divide
public static BigIntegerExpression divide(NumberExpression<?> expression, Number constant)
- Parameters:
expression- theNumberExpression.constant- the constantNumberto divide.- Returns:
- a new
BigIntegerExpressionholding the quotient of thevaluefrom the givenBigIntegerExpressiondivided by the givenconstant. - See Also:
NumberExpression.divide(ObservableBigIntegerValue)
-
divide
public static BigIntegerExpression divide(NumberExpression<?> expression, BigInteger constant)
- Parameters:
expression- theNumberExpression.constant- the constantBigIntegerto divide.- Returns:
- a new
BigIntegerExpressionholding the quotient of thevaluefrom the givenBigIntegerExpressiondivided by the givenconstant. - See Also:
NumberExpression.divide(ObservableBigIntegerValue)
-
divideAll
@SafeVarargs public static BigIntegerExpression divideAll(ObservableValue<? extends Number>... observables)
- Parameters:
observables- theObservableValues to divide.- Returns:
- a new
BigIntegerExpressionholding the quotient of thevalues from the givenObservableValues.
-
-