Class FloatBinding
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<Float>
io.github.mmm.value.observable.number.floats.FloatBinding
- All Implemented Interfaces:
EventSource<ObservableEvent<Float>,,ObservableEventListener<? super Float>> ComparableExpression<Float>,Expression<Float>,FloatExpression,ObservableFloatValue,ReadableFloatValue,NumberExpression<Float>,ObservableNumberValue<Float>,ReadableNumberValue<Float>,ObservableSimpleValue<Float>,ReadableSimpleValue<Float>,ObservableValue<Float>,ReadableTypedValue<Float>,ReadableValue<Float>,Supplier<Float>
- Since:
- 1.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionFloatBinding(Supplier<Float> expression, ObservableValue<?>... dependencies) The constructor. -
Method Summary
Modifier and TypeMethodDescriptionstatic FloatExpressionadd(NumberExpression<?> expression, float constant) static FloatExpressionadd(NumberExpression<?> expression, ObservableValue<? extends Number> other) static FloatExpressionadd(NumberExpression<?> expression, Number constant) static FloatExpressionaddAll(ObservableValue<? extends Number>... observables) static FloatExpressioncast(NumberExpression<?> expression) static FloatExpressiondivide(NumberExpression<?> expression, float constant) static FloatExpressiondivide(NumberExpression<?> expression, ObservableValue<? extends Number> other) static FloatExpressiondivide(NumberExpression<?> expression, Number constant) static FloatExpressiondivideAll(ObservableValue<? extends Number>... observables) static FloatExpressionmultiply(NumberExpression<?> expression, float constant) static FloatExpressionmultiply(NumberExpression<?> expression, ObservableValue<? extends Number> other) static FloatExpressionmultiply(NumberExpression<?> expression, Number constant) static FloatExpressionmultiplyAll(ObservableValue<? extends Number>... observables) static FloatExpressionnegate(FloatExpression expression) static FloatExpressionsubtract(NumberExpression<?> expression, float constant) static FloatExpressionsubtract(NumberExpression<?> expression, ObservableValue<? extends Number> other) static FloatExpressionsubtract(NumberExpression<?> expression, Number constant) static FloatExpressionsubtractAll(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
addListener, fireChange, fireEvent, fireEvent, fireEventFor, fireEventFor, fireEventWithOldValue, hasChangeAwareListeners, removeListener, toStringMethods inherited from class io.github.mmm.event.AbstractEventSource
getEventAdapter, hasListenersMethods 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.floats.FloatExpression
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.floats.ReadableFloatValue
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
-
FloatBinding
The constructor.- Parameters:
expression- theSupplierto compute thevalue.dependencies- theObservableValues theexpressiondepends on.
-
-
Method Details
-
negate
- Parameters:
expression- theFloatExpressionto negate.- Returns:
- a new
FloatExpressionholding the negation of thevaluefrom the givenFloatExpression. - See Also:
-
cast
- Parameters:
expression- theNumberExpressionto convert.- Returns:
- the given
NumberExpressionconverted to aFloatExpression.
-
add
public static FloatExpression add(NumberExpression<?> expression, ObservableValue<? extends Number> other) - Parameters:
expression- theFloatExpressionto add.other- theObservableValueto add.- Returns:
- a new
FloatExpressionholding the sum of thevalues of the first and the second givenObservableValues. - See Also:
-
add
- Parameters:
expression- theFloatExpressionto add.constant- the constantNumberto add.- Returns:
- a new
FloatExpressionholding the sum of thevaluefrom the givenFloatExpressionwith the givenconstant. - See Also:
-
add
- Parameters:
expression- theFloatExpressionto add.constant- the constantfloatto add.- Returns:
- a new
FloatExpressionholding the sum of thevaluefrom the givenFloatExpressionwith the givenconstant. - See Also:
-
addAll
- Parameters:
observables- theObservableValues to add.- Returns:
- a new
FloatExpressionholding the sum of thevalues from the givenObservableValues.
-
subtract
public static FloatExpression subtract(NumberExpression<?> expression, ObservableValue<? extends Number> other) - Parameters:
expression- theFloatExpression.other- theObservableValueto subtract.- Returns:
- a new
FloatExpressionholding the difference of thevalues of the first and the second givenObservableValues. - See Also:
-
subtract
- Parameters:
expression- theFloatExpression.constant- the constantNumberto subtract.- Returns:
- a new
FloatExpressionholding the difference of thevaluefrom the givenFloatExpressionwith the givenconstant. - See Also:
-
subtract
- Parameters:
expression- theFloatExpression.constant- the constantfloatto subtract.- Returns:
- a new
FloatExpressionholding the difference of thevaluefrom the givenFloatExpressionwith the givenconstant. - See Also:
-
subtractAll
@SafeVarargs public static FloatExpression subtractAll(ObservableValue<? extends Number>... observables) - Parameters:
observables- theObservableValues to subtract.- Returns:
- a new
FloatExpressionholding the difference of thevalues from the givenObservableValues.
-
multiply
public static FloatExpression multiply(NumberExpression<?> expression, ObservableValue<? extends Number> other) - Parameters:
expression- theFloatExpression.other- theObservableValueto multiply.- Returns:
- a new
FloatExpressionholding the product of thevalues of the first and the second givenObservableValues. - See Also:
-
multiply
- Parameters:
expression- theFloatExpression.constant- the constantNumberto multiply.- Returns:
- a new
FloatExpressionholding the product of thevaluefrom the givenFloatExpressionmultiplied with the givenconstant. - See Also:
-
multiply
- Parameters:
expression- theFloatExpression.constant- the constantfloatto multiply.- Returns:
- a new
FloatExpressionholding the product of thevaluefrom the givenFloatExpressionmultiplied with the givenconstant. - See Also:
-
multiplyAll
@SafeVarargs public static FloatExpression multiplyAll(ObservableValue<? extends Number>... observables) - Parameters:
observables- theObservableValues to multiply.- Returns:
- a new
FloatExpressionholding the product of thevalues from the givenObservableValues.
-
divide
public static FloatExpression divide(NumberExpression<?> expression, ObservableValue<? extends Number> other) - Parameters:
expression- theFloatExpression.other- theObservableValueto divide.- Returns:
- a new
FloatExpressionholding the quotient of thevalues of the first and the second givenObservableValues. - See Also:
-
divide
- Parameters:
expression- theFloatExpression.constant- the constantNumberto divide.- Returns:
- a new
FloatExpressionholding the quotient of thevaluefrom the givenFloatExpressiondivided by the givenconstant. - See Also:
-
divide
- Parameters:
expression- theFloatExpression.constant- the constantfloatto divide.- Returns:
- a new
FloatExpressionholding the quotient of thevaluefrom the givenFloatExpressiondivided by the givenconstant. - See Also:
-
divideAll
@SafeVarargs public static FloatExpression divideAll(ObservableValue<? extends Number>... observables) - Parameters:
observables- theObservableValues to divide.- Returns:
- a new
FloatExpressionholding the quotient of thevalues from the givenObservableValues.
-