Class IntegerBinding
java.lang.Object
io.github.mmm.event.AbstractEventSource<ObservableEvent<Integer>,ObservableEventListener<? super Integer>>
io.github.mmm.event.AbstractEventSender<ObservableEvent<Integer>,ObservableEventListener<? super Integer>>
io.github.mmm.value.observable.AbstractObservableValue<Integer>
io.github.mmm.value.observable.Binding<Integer>
io.github.mmm.value.observable.number.NumberBinding<Integer>
io.github.mmm.value.observable.number.integers.IntegerBinding
- All Implemented Interfaces:
EventSource<ObservableEvent<Integer>,,ObservableEventListener<? super Integer>> ComparableExpression<Integer>,Expression<Integer>,IntegerExpression,ObservableIntegerValue,ReadableIntegerValue,NumberExpression<Integer>,ObservableNumberValue<Integer>,ReadableNumberValue<Integer>,ObservableSimpleValue<Integer>,ReadableSimpleValue<Integer>,ObservableValue<Integer>,ReadableTypedValue<Integer>,ReadableValue<Integer>,Supplier<Integer>
- Since:
- 1.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionIntegerBinding(Supplier<Integer> expression, ObservableValue<?>... dependencies) The constructor. -
Method Summary
Modifier and TypeMethodDescriptionstatic IntegerExpressionadd(NumberExpression<?> expression, int constant) static IntegerExpressionadd(NumberExpression<?> expression, ObservableValue<? extends Number> other) static IntegerExpressionadd(NumberExpression<?> expression, Number constant) static IntegerExpressionaddAll(ObservableValue<? extends Number>... observables) static IntegerExpressioncast(NumberExpression<?> expression) static IntegerExpressiondivide(NumberExpression<?> expression, int constant) static IntegerExpressiondivide(NumberExpression<?> expression, ObservableValue<? extends Number> other) static IntegerExpressiondivide(NumberExpression<?> expression, Number constant) static IntegerExpressiondivideAll(ObservableValue<? extends Number>... observables) static IntegerExpressionmultiply(NumberExpression<?> expression, int constant) static IntegerExpressionmultiply(NumberExpression<?> expression, ObservableValue<? extends Number> other) static IntegerExpressionmultiply(NumberExpression<?> expression, Number constant) static IntegerExpressionmultiplyAll(ObservableValue<? extends Number>... observables) static IntegerExpressionnegate(IntegerExpression expression) static IntegerExpressionsubtract(NumberExpression<?> expression, int constant) static IntegerExpressionsubtract(NumberExpression<?> expression, ObservableValue<? extends Number> other) static IntegerExpressionsubtract(NumberExpression<?> expression, Number constant) static IntegerExpressionsubtractAll(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, hasListenersMethods 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.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.integers.IntegerExpression
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, 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, subtractMethods inherited from interface io.github.mmm.value.observable.number.NumberExpression
add, add, add, add, divide, divide, divide, divide, multiply, multiply, multiply, multiply, subtract, subtract, subtract, subtractMethods inherited from interface io.github.mmm.value.observable.ObservableValue
toStringMethods inherited from interface io.github.mmm.value.observable.number.integers.ReadableIntegerValue
getSafe, getValue, getValueClassMethods 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
-
Constructor Details
-
IntegerBinding
The constructor.- Parameters:
expression- theSupplierto compute thevalue.dependencies- theObservableValues theexpressiondepends on.
-
-
Method Details
-
negate
- Parameters:
expression- theIntegerExpressionto negate.- Returns:
- a new
IntegerExpressionholding the negation of thevaluefrom the givenIntegerExpression. - See Also:
-
cast
- Parameters:
expression- theNumberExpressionto convert.- Returns:
- the given
NumberExpressionconverted to aIntegerExpression.
-
add
public static IntegerExpression add(NumberExpression<?> expression, ObservableValue<? extends Number> other) - Parameters:
expression- theIntegerExpressionto add.other- theObservableValueto add.- Returns:
- a new
IntegerExpressionholding the sum of thevalues of the first and the second givenObservableValues. - See Also:
-
add
- Parameters:
expression- theIntegerExpressionto add.constant- the constantNumberto add.- Returns:
- a new
IntegerExpressionholding the sum of thevaluefrom the givenIntegerExpressionwith the givenconstant. - See Also:
-
add
- Parameters:
expression- theIntegerExpressionto add.constant- the constantintto add.- Returns:
- a new
IntegerExpressionholding the sum of thevaluefrom the givenIntegerExpressionwith the givenconstant. - See Also:
-
addAll
@SafeVarargs public static IntegerExpression addAll(ObservableValue<? extends Number>... observables) - Parameters:
observables- theObservableValues to add.- Returns:
- a new
IntegerExpressionholding the sum of thevalues from the givenObservableValues.
-
subtract
public static IntegerExpression subtract(NumberExpression<?> expression, ObservableValue<? extends Number> other) - Parameters:
expression- theIntegerExpression.other- theObservableValueto subtract.- Returns:
- a new
IntegerExpressionholding the difference of thevalues of the first and the second givenObservableValues. - See Also:
-
subtract
- Parameters:
expression- theIntegerExpression.constant- the constantNumberto subtract.- Returns:
- a new
IntegerExpressionholding the difference of thevaluefrom the givenIntegerExpressionwith the givenconstant. - See Also:
-
subtract
- Parameters:
expression- theIntegerExpression.constant- the constantintto subtract.- Returns:
- a new
IntegerExpressionholding the difference of thevaluefrom the givenIntegerExpressionwith the givenconstant. - See Also:
-
subtractAll
@SafeVarargs public static IntegerExpression subtractAll(ObservableValue<? extends Number>... observables) - Parameters:
observables- theObservableValues to subtract.- Returns:
- a new
IntegerExpressionholding the difference of thevalues from the givenObservableValues.
-
multiply
public static IntegerExpression multiply(NumberExpression<?> expression, ObservableValue<? extends Number> other) - Parameters:
expression- theIntegerExpression.other- theObservableValueto multiply.- Returns:
- a new
IntegerExpressionholding the product of thevalues of the first and the second givenObservableValues. - See Also:
-
multiply
- Parameters:
expression- theIntegerExpression.constant- the constantNumberto multiply.- Returns:
- a new
IntegerExpressionholding the product of thevaluefrom the givenIntegerExpressionmultiplied with the givenconstant. - See Also:
-
multiply
- Parameters:
expression- theIntegerExpression.constant- the constantintto multiply.- Returns:
- a new
IntegerExpressionholding the product of thevaluefrom the givenIntegerExpressionmultiplied with the givenconstant. - See Also:
-
multiplyAll
@SafeVarargs public static IntegerExpression multiplyAll(ObservableValue<? extends Number>... observables) - Parameters:
observables- theObservableValues to multiply.- Returns:
- a new
IntegerExpressionholding the product of thevalues from the givenObservableValues.
-
divide
public static IntegerExpression divide(NumberExpression<?> expression, ObservableValue<? extends Number> other) - Parameters:
expression- theIntegerExpression.other- theObservableValueto divide.- Returns:
- a new
IntegerExpressionholding the quotient of thevalues of the first and the second givenObservableValues. - See Also:
-
divide
- Parameters:
expression- theIntegerExpression.constant- the constantNumberto divide.- Returns:
- a new
IntegerExpressionholding the quotient of thevaluefrom the givenIntegerExpressiondivided by the givenconstant. - See Also:
-
divide
- Parameters:
expression- theIntegerExpression.constant- the constantintto divide.- Returns:
- a new
IntegerExpressionholding the quotient of thevaluefrom the givenIntegerExpressiondivided by the givenconstant. - See Also:
-
divideAll
@SafeVarargs public static IntegerExpression divideAll(ObservableValue<? extends Number>... observables) - Parameters:
observables- theObservableValues to divide.- Returns:
- a new
IntegerExpressionholding the quotient of thevalues from the givenObservableValues.
-