Interface NumberExpression<N extends Number & Comparable<? super N>>
-
- Type Parameters:
N- type of the observablevalue.
- All Superinterfaces:
ComparableExpression<N>,EventSource<ObservableEvent<N>,ObservableEventListener<? super N>>,Expression<N>,ObservableNumberValue<N>,ObservableSimpleValue<N>,ObservableValue<N>,ReadableNumberValue<N>,ReadableSimpleValue<N>,ReadableTypedValue<N>,ReadableValue<N>,Supplier<N>
- All Known Subinterfaces:
BigDecimalExpression,BigIntegerExpression,ByteExpression,DoubleExpression,FloatExpression,IntegerExpression,LongExpression,ReadableBigDecimalProperty,ReadableBigIntegerProperty,ReadableByteProperty,ReadableDoubleProperty,ReadableFloatProperty,ReadableIntegerProperty,ReadableLongProperty,ReadableNumberProperty<N>,ReadableShortProperty,ShortExpression,WritableBigDecimalProperty,WritableBigIntegerProperty,WritableByteProperty,WritableDoubleProperty,WritableFloatProperty,WritableIntegerProperty,WritableLongProperty,WritableNumberProperty<N>,WritableShortProperty
- All Known Implementing Classes:
BigDecimalBinding,BigDecimalProperty,BigIntegerBinding,BigIntegerProperty,ByteBinding,ByteProperty,DoubleBinding,DoubleProperty,DurationInSecondsProperty,FloatBinding,FloatProperty,IntegerBinding,IntegerProperty,LongBinding,LongProperty,NumberBinding,NumberProperty,ShortBinding,ShortProperty
public interface NumberExpression<N extends Number & Comparable<? super N>> extends ObservableNumberValue<N>, ComparableExpression<N>
- Since:
- 1.0.0
-
-
Method Summary
-
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.ObservableValue
toString
-
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.ReadableTypedValue
getValueClass
-
Methods inherited from interface io.github.mmm.value.ReadableValue
get, getSafe
-
-
-
-
Method Detail
-
negate
NumberExpression<N> negate()
- Returns:
- a
NumberExpressionholding the negativevalue.
-
add
default NumberExpression<?> add(ObservableValue<? extends Number> other)
- Parameters:
other- theObservableValueholding theNumberto add.- Returns:
- a new
NumberExpressionholding the sum of thisvaluewith thevalueof the givenObservableValue.
-
add
default BigDecimalExpression add(ObservableBigDecimalValue other)
- Parameters:
other- theObservableBigDecimalValueholding theNumberto add.- Returns:
- a new
BigDecimalExpressionholding the sum of thisvaluewith thevalueof the givenObservableBigDecimalValue.
-
add
NumberExpression<?> add(ObservableBigIntegerValue other)
- Parameters:
other- theObservableBigIntegerValueholding theNumberto add.- Returns:
- a new
NumberExpressionholding the sum of thisvaluewith thevalueof the givenObservableBigIntegerValue.
-
add
NumberExpression<?> add(ObservableDoubleValue other)
- Parameters:
other- theObservableDoubleValueholding theNumberto add.- Returns:
- a new
NumberExpressionholding the sum of thisvaluewith thevalueof the givenObservableDoubleValue.
-
add
NumberExpression<?> add(ObservableFloatValue other)
- Parameters:
other- theObservableFloatValueholding theNumberto add.- Returns:
- a new
NumberExpressionholding the sum of thisvaluewith thevalueof the givenObservableFloatValue.
-
add
NumberExpression<?> add(ObservableLongValue other)
- Parameters:
other- theObservableLongValueholding theNumberto add.- Returns:
- a new
NumberExpressionholding the sum of thisvaluewith thevalueof the givenObservableLongValue.
-
add
NumberExpression<?> add(ObservableIntegerValue other)
- Parameters:
other- theObservableIntegerValueholding theNumberto add.- Returns:
- a new
NumberExpressionholding the sum of thisvaluewith thevalueof the givenObservableIntegerValue.
-
add
NumberExpression<?> add(ObservableShortValue other)
- Parameters:
other- theObservableShortValueholding theNumberto add.- Returns:
- a new
NumberExpressionholding the sum of thisvaluewith thevalueof the givenObservableShortValue.
-
add
NumberExpression<?> add(ObservableByteValue other)
- Parameters:
other- theObservableByteValueholding theNumberto add.- Returns:
- a new
NumberExpressionholding the sum of thisvaluewith thevalueof the givenObservableByteValue.
-
add
default NumberExpression<?> add(Number constant)
- Parameters:
constant- the constantNumberto add.- Returns:
- a new
NumberExpressionholding the sum of thisvaluewith the givenconstant.
-
add
default BigDecimalExpression add(BigDecimal constant)
- Parameters:
constant- the constantBigDecimalto add.- Returns:
- a new
BigDecimalExpressionholding the sum of thisvaluewith the givenconstant.
-
add
NumberExpression<?> add(BigInteger constant)
- Parameters:
constant- the constantBigIntegerto add.- Returns:
- a new
NumberExpressionholding the sum of thisvaluewith the givenconstant.
-
add
NumberExpression<?> add(double constant)
- Parameters:
constant- the constantdoubleto add.- Returns:
- a new
NumberExpressionholding the sum of thisvaluewith the givenconstant.
-
add
NumberExpression<?> add(float constant)
- Parameters:
constant- the constantfloatto add.- Returns:
- a new
NumberExpressionholding the sum of thisvaluewith the givenconstant.
-
add
NumberExpression<?> add(long constant)
- Parameters:
constant- the constantlongto add.- Returns:
- a new
NumberExpressionholding the sum of thisvaluewith the givenconstant.
-
add
NumberExpression<?> add(int constant)
- Parameters:
constant- the constantintto add.- Returns:
- a new
NumberExpressionholding the sum of thisvaluewith the givenconstant.
-
add
NumberExpression<?> add(short constant)
- Parameters:
constant- the constantshortto add.- Returns:
- a new
NumberExpressionholding the sum of thisvaluewith the givenconstant.
-
add
NumberExpression<?> add(byte constant)
- Parameters:
constant- the constantbyteto add.- Returns:
- a new
NumberExpressionholding the sum of thisvaluewith the givenconstant.
-
subtract
default NumberExpression<?> subtract(ObservableValue<? extends Number> other)
- Parameters:
other- theObservableValueholding theNumberto subtract.- Returns:
- a new
NumberExpressionholding the difference of thisvaluewith thevalueof the givenObservableValue.
-
subtract
default BigDecimalExpression subtract(ObservableBigDecimalValue other)
- Parameters:
other- theObservableBigDecimalValueholding theNumberto subtract.- Returns:
- a new
BigDecimalExpressionholding the difference of thisvaluewith thevalueof the givenObservableBigDecimalValue.
-
subtract
NumberExpression<?> subtract(ObservableBigIntegerValue other)
- Parameters:
other- theObservableBigIntegerValueholding theNumberto subtract.- Returns:
- a new
NumberExpressionholding the difference of thisvaluewith thevalueof the givenObservableBigIntegerValue.
-
subtract
NumberExpression<?> subtract(ObservableDoubleValue other)
- Parameters:
other- theObservableDoubleValueholding theNumberto subtract.- Returns:
- a new
NumberExpressionholding the difference of thisvaluewith thevalueof the givenObservableDoubleValue.
-
subtract
NumberExpression<?> subtract(ObservableFloatValue other)
- Parameters:
other- theObservableFloatValueholding theNumberto subtract.- Returns:
- a new
NumberExpressionholding the difference of thisvaluewith thevalueof the givenObservableFloatValue.
-
subtract
NumberExpression<?> subtract(ObservableLongValue other)
- Parameters:
other- theObservableLongValueholding theNumberto subtract.- Returns:
- a new
NumberExpressionholding the difference of thisvaluewith thevalueof the givenObservableLongValue.
-
subtract
NumberExpression<?> subtract(ObservableIntegerValue other)
- Parameters:
other- theObservableIntegerValueholding theNumberto subtract.- Returns:
- a new
NumberExpressionholding the difference of thisvaluewith thevalueof the givenObservableIntegerValue.
-
subtract
NumberExpression<?> subtract(ObservableShortValue other)
- Parameters:
other- theObservableShortValueholding theNumberto subtract.- Returns:
- a new
NumberExpressionholding the difference of thisvaluewith thevalueof the givenObservableShortValue.
-
subtract
NumberExpression<?> subtract(ObservableByteValue other)
- Parameters:
other- theObservableByteValueholding theNumberto subtract.- Returns:
- a new
NumberExpressionholding the difference of thisvaluewith thevalueof the givenObservableByteValue.
-
subtract
default NumberExpression<?> subtract(Number constant)
- Parameters:
constant- the constantNumberto subtract.- Returns:
- a new
NumberExpressionholding the difference of thisvaluewith the givenconstant.
-
subtract
default BigDecimalExpression subtract(BigDecimal constant)
- Parameters:
constant- the constantBigDecimalto subtract.- Returns:
- a new
BigDecimalExpressionholding the difference of thisvaluewith the givenconstant.
-
subtract
NumberExpression<?> subtract(BigInteger constant)
- Parameters:
constant- the constantBigIntegerto subtract.- Returns:
- a new
NumberExpressionholding the difference of thisvaluewith the givenconstant.
-
subtract
NumberExpression<?> subtract(double constant)
- Parameters:
constant- the constantdoubleto subtract.- Returns:
- a new
NumberExpressionholding the difference of thisvaluewith the givenconstant.
-
subtract
NumberExpression<?> subtract(float constant)
- Parameters:
constant- the constantfloatto subtract.- Returns:
- a new
NumberExpressionholding the difference of thisvaluewith the givenconstant.
-
subtract
NumberExpression<?> subtract(long constant)
- Parameters:
constant- the constantlongto subtract.- Returns:
- a new
NumberExpressionholding the difference of thisvaluewith the givenconstant.
-
subtract
NumberExpression<?> subtract(int constant)
- Parameters:
constant- the constantintto subtract.- Returns:
- a new
NumberExpressionholding the difference of thisvaluewith the givenconstant.
-
subtract
NumberExpression<?> subtract(short constant)
- Parameters:
constant- the constantshortto subtract.- Returns:
- a new
NumberExpressionholding the difference of thisvaluewith the givenconstant.
-
subtract
NumberExpression<?> subtract(byte constant)
- Parameters:
constant- the constantbyteto subtract.- Returns:
- a new
NumberExpressionholding the difference of thisvaluewith the givenconstant.
-
multiply
default NumberExpression<?> multiply(ObservableValue<? extends Number> other)
- Parameters:
other- theObservableValueholding theNumberto multiply.- Returns:
- a new
NumberExpressionholding the product of thisvaluewith thevalueof the givenObservableValue.
-
multiply
default BigDecimalExpression multiply(ObservableBigDecimalValue other)
- Parameters:
other- theObservableBigDecimalValueholding theNumberto multiply.- Returns:
- a new
BigDecimalExpressionholding the product of thisvaluewith thevalueof the givenObservableBigDecimalValue.
-
multiply
NumberExpression<?> multiply(ObservableBigIntegerValue other)
- Parameters:
other- theObservableBigIntegerValueholding theNumberto multiply.- Returns:
- a new
NumberExpressionholding the product of thisvaluewith thevalueof the givenObservableBigIntegerValue.
-
multiply
NumberExpression<?> multiply(ObservableDoubleValue other)
- Parameters:
other- theObservableDoubleValueholding theNumberto multiply.- Returns:
- a new
NumberExpressionholding the product of thisvaluewith thevalueof the givenObservableDoubleValue.
-
multiply
NumberExpression<?> multiply(ObservableFloatValue other)
- Parameters:
other- theObservableFloatValueholding theNumberto multiply.- Returns:
- a new
NumberExpressionholding the product of thisvaluewith thevalueof the givenObservableFloatValue.
-
multiply
NumberExpression<?> multiply(ObservableLongValue other)
- Parameters:
other- theObservableLongValueholding theNumberto multiply.- Returns:
- a new
NumberExpressionholding the product of thisvaluewith thevalueof the givenObservableLongValue.
-
multiply
NumberExpression<?> multiply(ObservableIntegerValue other)
- Parameters:
other- theObservableIntegerValueholding theNumberto multiply.- Returns:
- a new
NumberExpressionholding the product of thisvaluewith thevalueof the givenObservableIntegerValue.
-
multiply
NumberExpression<?> multiply(ObservableShortValue other)
- Parameters:
other- theObservableShortValueholding theNumberto multiply.- Returns:
- a new
NumberExpressionholding the product of thisvaluewith thevalueof the givenObservableShortValue.
-
multiply
NumberExpression<?> multiply(ObservableByteValue other)
- Parameters:
other- theObservableByteValueholding theNumberto multiply.- Returns:
- a new
NumberExpressionholding the product of thisvaluewith thevalueof the givenObservableByteValue.
-
multiply
default NumberExpression<?> multiply(Number constant)
- Parameters:
constant- the constantNumberto multiply.- Returns:
- a new
NumberExpressionholding the product of thisvaluemultiplied with the givenconstant.
-
multiply
default BigDecimalExpression multiply(BigDecimal constant)
- Parameters:
constant- the constantBigDecimalto multiply.- Returns:
- a new
BigDecimalExpressionholding the product of thisvaluemultiplied with the givenconstant.
-
multiply
NumberExpression<?> multiply(BigInteger constant)
- Parameters:
constant- the constantBigIntegerto multiply.- Returns:
- a new
NumberExpressionholding the product of thisvaluemultiplied with the givenconstant.
-
multiply
NumberExpression<?> multiply(double constant)
- Parameters:
constant- the constantdoubleto multiply.- Returns:
- a new
NumberExpressionholding the product of thisvaluemultiplied with the givenconstant.
-
multiply
NumberExpression<?> multiply(float constant)
- Parameters:
constant- the constantfloatto multiply.- Returns:
- a new
NumberExpressionholding the product of thisvaluemultiplied with the givenconstant.
-
multiply
NumberExpression<?> multiply(long constant)
- Parameters:
constant- the constantlongto multiply.- Returns:
- a new
NumberExpressionholding the product of thisvaluemultiplied with the givenconstant.
-
multiply
NumberExpression<?> multiply(int constant)
- Parameters:
constant- the constantintto multiply.- Returns:
- a new
NumberExpressionholding the product of thisvaluemultiplied with the givenconstant.
-
multiply
NumberExpression<?> multiply(short constant)
- Parameters:
constant- the constantshortto multiply.- Returns:
- a new
NumberExpressionholding the product of thisvaluemultiplied with the givenconstant.
-
multiply
NumberExpression<?> multiply(byte constant)
- Parameters:
constant- the constantbyteto multiply.- Returns:
- a new
NumberExpressionholding the product of thisvaluemultiplied with the givenconstant.
-
divide
default NumberExpression<?> divide(ObservableValue<? extends Number> other)
- Parameters:
other- theObservableValueholding theNumberto divide.- Returns:
- a new
NumberExpressionholding the quotient of thisvaluewith thevalueof the givenObservableValue.
-
divide
default BigDecimalExpression divide(ObservableBigDecimalValue other)
- Parameters:
other- theObservableBigDecimalValueholding theNumberto divide.- Returns:
- a new
BigDecimalExpressionholding the quotient of thisvaluewith thevalueof the givenObservableBigDecimalValue.
-
divide
NumberExpression<?> divide(ObservableBigIntegerValue other)
- Parameters:
other- theObservableBigIntegerValueholding theNumberto divide.- Returns:
- a new
NumberExpressionholding the quotient of thisvaluewith thevalueof the givenObservableBigIntegerValue.
-
divide
NumberExpression<?> divide(ObservableDoubleValue other)
- Parameters:
other- theObservableDoubleValueholding theNumberto divide.- Returns:
- a new
NumberExpressionholding the quotient of thisvaluewith thevalueof the givenObservableDoubleValue.
-
divide
NumberExpression<?> divide(ObservableFloatValue other)
- Parameters:
other- theObservableFloatValueholding theNumberto divide.- Returns:
- a new
NumberExpressionholding the quotient of thisvaluewith thevalueof the givenObservableFloatValue.
-
divide
NumberExpression<?> divide(ObservableLongValue other)
- Parameters:
other- theObservableLongValueholding theNumberto divide.- Returns:
- a new
NumberExpressionholding the quotient of thisvaluewith thevalueof the givenObservableLongValue.
-
divide
NumberExpression<?> divide(ObservableIntegerValue other)
- Parameters:
other- theObservableIntegerValueholding theNumberto divide.- Returns:
- a new
NumberExpressionholding the quotient of thisvaluewith thevalueof the givenObservableIntegerValue.
-
divide
NumberExpression<?> divide(ObservableShortValue other)
- Parameters:
other- theObservableShortValueholding theNumberto divide.- Returns:
- a new
NumberExpressionholding the quotient of thisvaluewith thevalueof the givenObservableShortValue.
-
divide
NumberExpression<?> divide(ObservableByteValue other)
- Parameters:
other- theObservableByteValueholding theNumberto divide.- Returns:
- a new
NumberExpressionholding the quotient of thisvaluewith thevalueof the givenObservableByteValue.
-
divide
default NumberExpression<?> divide(Number constant)
- Parameters:
constant- the constantNumberto divide.- Returns:
- a new
NumberExpressionholding the quotient of thisvaluedivided by the givenconstant.
-
divide
default BigDecimalExpression divide(BigDecimal constant)
- Parameters:
constant- the constantBigDecimalto divide.- Returns:
- a new
BigDecimalExpressionholding the quotient of thisvaluedivided by the givenconstant.
-
divide
NumberExpression<?> divide(BigInteger constant)
- Parameters:
constant- the constantBigIntegerto divide.- Returns:
- a new
NumberExpressionholding the quotient of thisvaluedivided by the givenconstant.
-
divide
NumberExpression<?> divide(double constant)
- Parameters:
constant- the constantdoubleto divide.- Returns:
- a new
NumberExpressionholding the quotient of thisvaluedivided by the givenconstant.
-
divide
NumberExpression<?> divide(float constant)
- Parameters:
constant- the constantfloatto divide.- Returns:
- a new
NumberExpressionholding the quotient of thisvaluedivided by the givenconstant.
-
divide
NumberExpression<?> divide(long constant)
- Parameters:
constant- the constantlongto divide.- Returns:
- a new
NumberExpressionholding the quotient of thisvaluedivided by the givenconstant.
-
divide
NumberExpression<?> divide(int constant)
- Parameters:
constant- the constantintto divide.- Returns:
- a new
NumberExpressionholding the quotient of thisvaluedivided by the givenconstant.
-
divide
NumberExpression<?> divide(short constant)
- Parameters:
constant- the constantshortto divide.- Returns:
- a new
NumberExpressionholding the quotient of thisvaluedivided by the givenconstant.
-
divide
NumberExpression<?> divide(byte constant)
- Parameters:
constant- the constantbyteto divide.- Returns:
- a new
NumberExpressionholding the quotient of thisvaluedivided by the givenconstant.
-
-