Class ByteBinding
java.lang.Object
io.github.mmm.event.AbstractEventSource<ObservableEvent<Byte>,ObservableEventListener<? super Byte>>
io.github.mmm.event.AbstractEventSender<ObservableEvent<Byte>,ObservableEventListener<? super Byte>>
io.github.mmm.value.observable.AbstractObservableValue<Byte>
io.github.mmm.value.observable.Binding<Byte>
io.github.mmm.value.observable.number.NumberBinding<Byte>
io.github.mmm.value.observable.number.bytes.ByteBinding
- All Implemented Interfaces:
EventSource<ObservableEvent<Byte>,,ObservableEventListener<? super Byte>> ComparableExpression<Byte>,Expression<Byte>,ByteExpression,ObservableByteValue,ReadableByteValue,NumberExpression<Byte>,ObservableNumberValue<Byte>,ReadableNumberValue<Byte>,ObservableSimpleValue<Byte>,ReadableSimpleValue<Byte>,ObservableValue<Byte>,ReadableTypedValue<Byte>,ReadableValue<Byte>,Supplier<Byte>
- Since:
- 1.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionByteBinding(Supplier<Byte> expression, ObservableValue<?>... dependencies) The constructor. -
Method Summary
Modifier and TypeMethodDescriptionstatic ByteExpressionadd(NumberExpression<?> expression, byte constant) static ByteExpressionadd(NumberExpression<?> expression, ObservableValue<? extends Number> other) static ByteExpressionadd(NumberExpression<?> expression, Number constant) static ByteExpressionaddAll(ObservableValue<? extends Number>... observables) static ByteExpressioncast(NumberExpression<?> expression) static ByteExpressiondivide(NumberExpression<?> expression, byte constant) static ByteExpressiondivide(NumberExpression<?> expression, ObservableValue<? extends Number> other) static ByteExpressiondivide(NumberExpression<?> expression, Number constant) static ByteExpressiondivideAll(ObservableValue<? extends Number>... observables) static ByteExpressionmultiply(NumberExpression<?> expression, byte constant) static ByteExpressionmultiply(NumberExpression<?> expression, ObservableValue<? extends Number> other) static ByteExpressionmultiply(NumberExpression<?> expression, Number constant) static ByteExpressionmultiplyAll(ObservableValue<? extends Number>... observables) static ByteExpressionnegate(ByteExpression expression) static ByteExpressionsubtract(NumberExpression<?> expression, byte constant) static ByteExpressionsubtract(NumberExpression<?> expression, ObservableValue<? extends Number> other) static ByteExpressionsubtract(NumberExpression<?> expression, Number constant) static ByteExpressionsubtractAll(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.number.bytes.ByteExpression
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.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, 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.bytes.ReadableByteValue
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
-
ByteBinding
The constructor.- Parameters:
expression- theSupplierto compute thevalue.dependencies- theObservableValues theexpressiondepends on.
-
-
Method Details
-
negate
- Parameters:
expression- theByteExpressionto negate.- Returns:
- a new
ByteExpressionholding the negation of thevaluefrom the givenByteExpression. - See Also:
-
cast
- Parameters:
expression- theNumberExpressionto convert.- Returns:
- the given
NumberExpressionconverted to aByteExpression.
-
add
public static ByteExpression add(NumberExpression<?> expression, ObservableValue<? extends Number> other) - Parameters:
expression- theByteExpressionto add.other- theObservableValueto add.- Returns:
- a new
ByteExpressionholding the sum of thevalues of the first and the second givenObservableValues. - See Also:
-
add
- Parameters:
expression- theByteExpressionto add.constant- the constantNumberto add.- Returns:
- a new
ByteExpressionholding the sum of thevaluefrom the givenByteExpressionwith the givenconstant. - See Also:
-
add
- Parameters:
expression- theByteExpressionto add.constant- the constantbyteto add.- Returns:
- a new
ByteExpressionholding the sum of thevaluefrom the givenByteExpressionwith the givenconstant. - See Also:
-
addAll
- Parameters:
observables- theObservableValues to add.- Returns:
- a new
ByteExpressionholding the sum of thevalues from the givenObservableValues.
-
subtract
public static ByteExpression subtract(NumberExpression<?> expression, ObservableValue<? extends Number> other) - Parameters:
expression- theByteExpression.other- theObservableValueto subtract.- Returns:
- a new
ByteExpressionholding the difference of thevalues of the first and the second givenObservableValues. - See Also:
-
subtract
- Parameters:
expression- theByteExpression.constant- the constantNumberto subtract.- Returns:
- a new
ByteExpressionholding the difference of thevaluefrom the givenByteExpressionwith the givenconstant. - See Also:
-
subtract
- Parameters:
expression- theByteExpression.constant- the constantbyteto subtract.- Returns:
- a new
ByteExpressionholding the difference of thevaluefrom the givenByteExpressionwith the givenconstant. - See Also:
-
subtractAll
@SafeVarargs public static ByteExpression subtractAll(ObservableValue<? extends Number>... observables) - Parameters:
observables- theObservableValues to subtract.- Returns:
- a new
ByteExpressionholding the difference of thevalues from the givenObservableValues.
-
multiply
public static ByteExpression multiply(NumberExpression<?> expression, ObservableValue<? extends Number> other) - Parameters:
expression- theByteExpression.other- theObservableValueto multiply.- Returns:
- a new
ByteExpressionholding the product of thevalues of the first and the second givenObservableValues. - See Also:
-
multiply
- Parameters:
expression- theByteExpression.constant- the constantNumberto multiply.- Returns:
- a new
ByteExpressionholding the product of thevaluefrom the givenByteExpressionmultiplied with the givenconstant. - See Also:
-
multiply
- Parameters:
expression- theByteExpression.constant- the constantbyteto multiply.- Returns:
- a new
ByteExpressionholding the product of thevaluefrom the givenByteExpressionmultiplied with the givenconstant. - See Also:
-
multiplyAll
@SafeVarargs public static ByteExpression multiplyAll(ObservableValue<? extends Number>... observables) - Parameters:
observables- theObservableValues to multiply.- Returns:
- a new
ByteExpressionholding the product of thevalues from the givenObservableValues.
-
divide
public static ByteExpression divide(NumberExpression<?> expression, ObservableValue<? extends Number> other) - Parameters:
expression- theByteExpression.other- theObservableValueto divide.- Returns:
- a new
ByteExpressionholding the quotient of thevalues of the first and the second givenObservableValues. - See Also:
-
divide
- Parameters:
expression- theByteExpression.constant- the constantNumberto divide.- Returns:
- a new
ByteExpressionholding the quotient of thevaluefrom the givenByteExpressiondivided by the givenconstant. - See Also:
-
divide
- Parameters:
expression- theByteExpression.constant- the constantbyteto divide.- Returns:
- a new
ByteExpressionholding the quotient of thevaluefrom the givenByteExpressiondivided by the givenconstant. - See Also:
-
divideAll
@SafeVarargs public static ByteExpression divideAll(ObservableValue<? extends Number>... observables) - Parameters:
observables- theObservableValues to divide.- Returns:
- a new
ByteExpressionholding the quotient of thevalues from the givenObservableValues.
-