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 FloatExpression
add
(NumberExpression<?> expression, float constant) static FloatExpression
add
(NumberExpression<?> expression, ObservableValue<? extends Number> other) static FloatExpression
add
(NumberExpression<?> expression, Number constant) static FloatExpression
addAll
(ObservableValue<? extends Number>... observables) static FloatExpression
cast
(NumberExpression<?> expression) static FloatExpression
divide
(NumberExpression<?> expression, float constant) static FloatExpression
divide
(NumberExpression<?> expression, ObservableValue<? extends Number> other) static FloatExpression
divide
(NumberExpression<?> expression, Number constant) static FloatExpression
divideAll
(ObservableValue<? extends Number>... observables) static FloatExpression
multiply
(NumberExpression<?> expression, float constant) static FloatExpression
multiply
(NumberExpression<?> expression, ObservableValue<? extends Number> other) static FloatExpression
multiply
(NumberExpression<?> expression, Number constant) static FloatExpression
multiplyAll
(ObservableValue<? extends Number>... observables) static FloatExpression
negate
(FloatExpression expression) static FloatExpression
subtract
(NumberExpression<?> expression, float constant) static FloatExpression
subtract
(NumberExpression<?> expression, ObservableValue<? extends Number> other) static FloatExpression
subtract
(NumberExpression<?> expression, Number constant) static FloatExpression
subtractAll
(ObservableValue<? extends Number>... observables) 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.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.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, subtract
Methods 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, subtract
Methods inherited from interface io.github.mmm.value.observable.ObservableValue
toString
Methods inherited from interface io.github.mmm.value.observable.number.floats.ReadableFloatValue
getSafe, getValue, 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 Details
-
FloatBinding
The constructor.- Parameters:
expression
- theSupplier
to compute thevalue
.dependencies
- theObservableValue
s theexpression
depends on.
-
-
Method Details
-
negate
- Parameters:
expression
- theFloatExpression
to negate.- Returns:
- a new
FloatExpression
holding the negation of thevalue
from the givenFloatExpression
. - See Also:
-
cast
- Parameters:
expression
- theNumberExpression
to convert.- Returns:
- the given
NumberExpression
converted to aFloatExpression
.
-
add
public static FloatExpression add(NumberExpression<?> expression, ObservableValue<? extends Number> other) - Parameters:
expression
- theFloatExpression
to add.other
- theObservableValue
to add.- Returns:
- a new
FloatExpression
holding the sum of thevalue
s of the first and the second givenObservableValue
s. - See Also:
-
add
- Parameters:
expression
- theFloatExpression
to add.constant
- the constantNumber
to add.- Returns:
- a new
FloatExpression
holding the sum of thevalue
from the givenFloatExpression
with the givenconstant
. - See Also:
-
add
- Parameters:
expression
- theFloatExpression
to add.constant
- the constantfloat
to add.- Returns:
- a new
FloatExpression
holding the sum of thevalue
from the givenFloatExpression
with the givenconstant
. - See Also:
-
addAll
- Parameters:
observables
- theObservableValue
s to add.- Returns:
- a new
FloatExpression
holding the sum of thevalue
s from the givenObservableValue
s.
-
subtract
public static FloatExpression subtract(NumberExpression<?> expression, ObservableValue<? extends Number> other) - Parameters:
expression
- theFloatExpression
.other
- theObservableValue
to subtract.- Returns:
- a new
FloatExpression
holding the difference of thevalue
s of the first and the second givenObservableValue
s. - See Also:
-
subtract
- Parameters:
expression
- theFloatExpression
.constant
- the constantNumber
to subtract.- Returns:
- a new
FloatExpression
holding the difference of thevalue
from the givenFloatExpression
with the givenconstant
. - See Also:
-
subtract
- Parameters:
expression
- theFloatExpression
.constant
- the constantfloat
to subtract.- Returns:
- a new
FloatExpression
holding the difference of thevalue
from the givenFloatExpression
with the givenconstant
. - See Also:
-
subtractAll
@SafeVarargs public static FloatExpression subtractAll(ObservableValue<? extends Number>... observables) - Parameters:
observables
- theObservableValue
s to subtract.- Returns:
- a new
FloatExpression
holding the difference of thevalue
s from the givenObservableValue
s.
-
multiply
public static FloatExpression multiply(NumberExpression<?> expression, ObservableValue<? extends Number> other) - Parameters:
expression
- theFloatExpression
.other
- theObservableValue
to multiply.- Returns:
- a new
FloatExpression
holding the product of thevalue
s of the first and the second givenObservableValue
s. - See Also:
-
multiply
- Parameters:
expression
- theFloatExpression
.constant
- the constantNumber
to multiply.- Returns:
- a new
FloatExpression
holding the product of thevalue
from the givenFloatExpression
multiplied with the givenconstant
. - See Also:
-
multiply
- Parameters:
expression
- theFloatExpression
.constant
- the constantfloat
to multiply.- Returns:
- a new
FloatExpression
holding the product of thevalue
from the givenFloatExpression
multiplied with the givenconstant
. - See Also:
-
multiplyAll
@SafeVarargs public static FloatExpression multiplyAll(ObservableValue<? extends Number>... observables) - Parameters:
observables
- theObservableValue
s to multiply.- Returns:
- a new
FloatExpression
holding the product of thevalue
s from the givenObservableValue
s.
-
divide
public static FloatExpression divide(NumberExpression<?> expression, ObservableValue<? extends Number> other) - Parameters:
expression
- theFloatExpression
.other
- theObservableValue
to divide.- Returns:
- a new
FloatExpression
holding the quotient of thevalue
s of the first and the second givenObservableValue
s. - See Also:
-
divide
- Parameters:
expression
- theFloatExpression
.constant
- the constantNumber
to divide.- Returns:
- a new
FloatExpression
holding the quotient of thevalue
from the givenFloatExpression
divided by the givenconstant
. - See Also:
-
divide
- Parameters:
expression
- theFloatExpression
.constant
- the constantfloat
to divide.- Returns:
- a new
FloatExpression
holding the quotient of thevalue
from the givenFloatExpression
divided by the givenconstant
. - See Also:
-
divideAll
@SafeVarargs public static FloatExpression divideAll(ObservableValue<? extends Number>... observables) - Parameters:
observables
- theObservableValue
s to divide.- Returns:
- a new
FloatExpression
holding the quotient of thevalue
s from the givenObservableValue
s.
-