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,ShortExpression
- All Known Implementing Classes:
BigDecimalBinding,BigIntegerBinding,ByteBinding,DoubleBinding,FloatBinding,IntegerBinding,LongBinding,NumberBinding,ShortBinding
public interface NumberExpression<N extends Number & Comparable<? super N>>
extends ObservableNumberValue<N>, ComparableExpression<N>
- Since:
- 1.0.0
-
Method Summary
Modifier and TypeMethodDescriptionadd(byte constant) add(double constant) add(float constant) add(int constant) add(long constant) add(short constant) default BigDecimalExpressionadd(ObservableBigDecimalValue other) add(ObservableBigIntegerValue other) add(ObservableByteValue other) add(ObservableDoubleValue other) add(ObservableFloatValue other) add(ObservableIntegerValue other) add(ObservableLongValue other) add(ObservableShortValue other) default NumberExpression<?>add(ObservableValue<? extends Number> other) default NumberExpression<?>default BigDecimalExpressionadd(BigDecimal constant) add(BigInteger constant) divide(byte constant) divide(double constant) divide(float constant) divide(int constant) divide(long constant) divide(short constant) default BigDecimalExpressiondivide(ObservableBigDecimalValue other) divide(ObservableBigIntegerValue other) divide(ObservableByteValue other) divide(ObservableDoubleValue other) divide(ObservableFloatValue other) divide(ObservableIntegerValue other) divide(ObservableLongValue other) divide(ObservableShortValue other) default NumberExpression<?>divide(ObservableValue<? extends Number> other) default NumberExpression<?>default BigDecimalExpressiondivide(BigDecimal constant) divide(BigInteger constant) multiply(byte constant) multiply(double constant) multiply(float constant) multiply(int constant) multiply(long constant) multiply(short constant) default BigDecimalExpressionmultiply(ObservableByteValue other) multiply(ObservableDoubleValue other) multiply(ObservableFloatValue other) multiply(ObservableIntegerValue other) multiply(ObservableLongValue other) multiply(ObservableShortValue other) default NumberExpression<?>multiply(ObservableValue<? extends Number> other) default NumberExpression<?>default BigDecimalExpressionmultiply(BigDecimal constant) multiply(BigInteger constant) negate()subtract(byte constant) subtract(double constant) subtract(float constant) subtract(int constant) subtract(long constant) subtract(short constant) default BigDecimalExpressionsubtract(ObservableByteValue other) subtract(ObservableDoubleValue other) subtract(ObservableFloatValue other) subtract(ObservableIntegerValue other) subtract(ObservableLongValue other) subtract(ObservableShortValue other) default NumberExpression<?>subtract(ObservableValue<? extends Number> other) default NumberExpression<?>default BigDecimalExpressionsubtract(BigDecimal constant) subtract(BigInteger constant) Methods 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.ObservableValue
toStringMethods 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.ReadableTypedValue
getValueClassMethods inherited from interface io.github.mmm.value.ReadableValue
get, getSafe
-
Method Details
-
negate
NumberExpression<N> negate()- Returns:
- a
NumberExpressionholding the negativevalue.
-
add
- Parameters:
other- theObservableValueholding theNumberto add.- Returns:
- a new
NumberExpressionholding the sum of thisvaluewith thevalueof the givenObservableValue.
-
add
- Parameters:
other- theObservableBigDecimalValueholding theNumberto add.- Returns:
- a new
BigDecimalExpressionholding the sum of thisvaluewith thevalueof the givenObservableBigDecimalValue.
-
add
- Parameters:
other- theObservableBigIntegerValueholding theNumberto add.- Returns:
- a new
NumberExpressionholding the sum of thisvaluewith thevalueof the givenObservableBigIntegerValue.
-
add
- Parameters:
other- theObservableDoubleValueholding theNumberto add.- Returns:
- a new
NumberExpressionholding the sum of thisvaluewith thevalueof the givenObservableDoubleValue.
-
add
- Parameters:
other- theObservableFloatValueholding theNumberto add.- Returns:
- a new
NumberExpressionholding the sum of thisvaluewith thevalueof the givenObservableFloatValue.
-
add
- Parameters:
other- theObservableLongValueholding theNumberto add.- Returns:
- a new
NumberExpressionholding the sum of thisvaluewith thevalueof the givenObservableLongValue.
-
add
- Parameters:
other- theObservableIntegerValueholding theNumberto add.- Returns:
- a new
NumberExpressionholding the sum of thisvaluewith thevalueof the givenObservableIntegerValue.
-
add
- Parameters:
other- theObservableShortValueholding theNumberto add.- Returns:
- a new
NumberExpressionholding the sum of thisvaluewith thevalueof the givenObservableShortValue.
-
add
- Parameters:
other- theObservableByteValueholding theNumberto add.- Returns:
- a new
NumberExpressionholding the sum of thisvaluewith thevalueof the givenObservableByteValue.
-
add
- Parameters:
constant- the constantNumberto add.- Returns:
- a new
NumberExpressionholding the sum of thisvaluewith the givenconstant.
-
add
- Parameters:
constant- the constantBigDecimalto add.- Returns:
- a new
BigDecimalExpressionholding the sum of thisvaluewith the givenconstant.
-
add
- Parameters:
constant- the constantBigIntegerto add.- Returns:
- a new
NumberExpressionholding the sum of thisvaluewith the givenconstant.
-
add
- Parameters:
constant- the constantdoubleto add.- Returns:
- a new
NumberExpressionholding the sum of thisvaluewith the givenconstant.
-
add
- Parameters:
constant- the constantfloatto add.- Returns:
- a new
NumberExpressionholding the sum of thisvaluewith the givenconstant.
-
add
- Parameters:
constant- the constantlongto add.- Returns:
- a new
NumberExpressionholding the sum of thisvaluewith the givenconstant.
-
add
- Parameters:
constant- the constantintto add.- Returns:
- a new
NumberExpressionholding the sum of thisvaluewith the givenconstant.
-
add
- Parameters:
constant- the constantshortto add.- Returns:
- a new
NumberExpressionholding the sum of thisvaluewith the givenconstant.
-
add
- Parameters:
constant- the constantbyteto add.- Returns:
- a new
NumberExpressionholding the sum of thisvaluewith the givenconstant.
-
subtract
- Parameters:
other- theObservableValueholding theNumberto subtract.- Returns:
- a new
NumberExpressionholding the difference of thisvaluewith thevalueof the givenObservableValue.
-
subtract
- Parameters:
other- theObservableBigDecimalValueholding theNumberto subtract.- Returns:
- a new
BigDecimalExpressionholding the difference of thisvaluewith thevalueof the givenObservableBigDecimalValue.
-
subtract
- Parameters:
other- theObservableBigIntegerValueholding theNumberto subtract.- Returns:
- a new
NumberExpressionholding the difference of thisvaluewith thevalueof the givenObservableBigIntegerValue.
-
subtract
- Parameters:
other- theObservableDoubleValueholding theNumberto subtract.- Returns:
- a new
NumberExpressionholding the difference of thisvaluewith thevalueof the givenObservableDoubleValue.
-
subtract
- Parameters:
other- theObservableFloatValueholding theNumberto subtract.- Returns:
- a new
NumberExpressionholding the difference of thisvaluewith thevalueof the givenObservableFloatValue.
-
subtract
- Parameters:
other- theObservableLongValueholding theNumberto subtract.- Returns:
- a new
NumberExpressionholding the difference of thisvaluewith thevalueof the givenObservableLongValue.
-
subtract
- Parameters:
other- theObservableIntegerValueholding theNumberto subtract.- Returns:
- a new
NumberExpressionholding the difference of thisvaluewith thevalueof the givenObservableIntegerValue.
-
subtract
- Parameters:
other- theObservableShortValueholding theNumberto subtract.- Returns:
- a new
NumberExpressionholding the difference of thisvaluewith thevalueof the givenObservableShortValue.
-
subtract
- Parameters:
other- theObservableByteValueholding theNumberto subtract.- Returns:
- a new
NumberExpressionholding the difference of thisvaluewith thevalueof the givenObservableByteValue.
-
subtract
- Parameters:
constant- the constantNumberto subtract.- Returns:
- a new
NumberExpressionholding the difference of thisvaluewith the givenconstant.
-
subtract
- Parameters:
constant- the constantBigDecimalto subtract.- Returns:
- a new
BigDecimalExpressionholding the difference of thisvaluewith the givenconstant.
-
subtract
- Parameters:
constant- the constantBigIntegerto subtract.- Returns:
- a new
NumberExpressionholding the difference of thisvaluewith the givenconstant.
-
subtract
- Parameters:
constant- the constantdoubleto subtract.- Returns:
- a new
NumberExpressionholding the difference of thisvaluewith the givenconstant.
-
subtract
- Parameters:
constant- the constantfloatto subtract.- Returns:
- a new
NumberExpressionholding the difference of thisvaluewith the givenconstant.
-
subtract
- Parameters:
constant- the constantlongto subtract.- Returns:
- a new
NumberExpressionholding the difference of thisvaluewith the givenconstant.
-
subtract
- Parameters:
constant- the constantintto subtract.- Returns:
- a new
NumberExpressionholding the difference of thisvaluewith the givenconstant.
-
subtract
- Parameters:
constant- the constantshortto subtract.- Returns:
- a new
NumberExpressionholding the difference of thisvaluewith the givenconstant.
-
subtract
- Parameters:
constant- the constantbyteto subtract.- Returns:
- a new
NumberExpressionholding the difference of thisvaluewith the givenconstant.
-
multiply
- Parameters:
other- theObservableValueholding theNumberto multiply.- Returns:
- a new
NumberExpressionholding the product of thisvaluewith thevalueof the givenObservableValue.
-
multiply
- Parameters:
other- theObservableBigDecimalValueholding theNumberto multiply.- Returns:
- a new
BigDecimalExpressionholding the product of thisvaluewith thevalueof the givenObservableBigDecimalValue.
-
multiply
- Parameters:
other- theObservableBigIntegerValueholding theNumberto multiply.- Returns:
- a new
NumberExpressionholding the product of thisvaluewith thevalueof the givenObservableBigIntegerValue.
-
multiply
- Parameters:
other- theObservableDoubleValueholding theNumberto multiply.- Returns:
- a new
NumberExpressionholding the product of thisvaluewith thevalueof the givenObservableDoubleValue.
-
multiply
- Parameters:
other- theObservableFloatValueholding theNumberto multiply.- Returns:
- a new
NumberExpressionholding the product of thisvaluewith thevalueof the givenObservableFloatValue.
-
multiply
- Parameters:
other- theObservableLongValueholding theNumberto multiply.- Returns:
- a new
NumberExpressionholding the product of thisvaluewith thevalueof the givenObservableLongValue.
-
multiply
- Parameters:
other- theObservableIntegerValueholding theNumberto multiply.- Returns:
- a new
NumberExpressionholding the product of thisvaluewith thevalueof the givenObservableIntegerValue.
-
multiply
- Parameters:
other- theObservableShortValueholding theNumberto multiply.- Returns:
- a new
NumberExpressionholding the product of thisvaluewith thevalueof the givenObservableShortValue.
-
multiply
- Parameters:
other- theObservableByteValueholding theNumberto multiply.- Returns:
- a new
NumberExpressionholding the product of thisvaluewith thevalueof the givenObservableByteValue.
-
multiply
- Parameters:
constant- the constantNumberto multiply.- Returns:
- a new
NumberExpressionholding the product of thisvaluemultiplied with the givenconstant.
-
multiply
- Parameters:
constant- the constantBigDecimalto multiply.- Returns:
- a new
BigDecimalExpressionholding the product of thisvaluemultiplied with the givenconstant.
-
multiply
- Parameters:
constant- the constantBigIntegerto multiply.- Returns:
- a new
NumberExpressionholding the product of thisvaluemultiplied with the givenconstant.
-
multiply
- Parameters:
constant- the constantdoubleto multiply.- Returns:
- a new
NumberExpressionholding the product of thisvaluemultiplied with the givenconstant.
-
multiply
- Parameters:
constant- the constantfloatto multiply.- Returns:
- a new
NumberExpressionholding the product of thisvaluemultiplied with the givenconstant.
-
multiply
- Parameters:
constant- the constantlongto multiply.- Returns:
- a new
NumberExpressionholding the product of thisvaluemultiplied with the givenconstant.
-
multiply
- Parameters:
constant- the constantintto multiply.- Returns:
- a new
NumberExpressionholding the product of thisvaluemultiplied with the givenconstant.
-
multiply
- Parameters:
constant- the constantshortto multiply.- Returns:
- a new
NumberExpressionholding the product of thisvaluemultiplied with the givenconstant.
-
multiply
- Parameters:
constant- the constantbyteto multiply.- Returns:
- a new
NumberExpressionholding the product of thisvaluemultiplied with the givenconstant.
-
divide
- Parameters:
other- theObservableValueholding theNumberto divide.- Returns:
- a new
NumberExpressionholding the quotient of thisvaluewith thevalueof the givenObservableValue.
-
divide
- Parameters:
other- theObservableBigDecimalValueholding theNumberto divide.- Returns:
- a new
BigDecimalExpressionholding the quotient of thisvaluewith thevalueof the givenObservableBigDecimalValue.
-
divide
- Parameters:
other- theObservableBigIntegerValueholding theNumberto divide.- Returns:
- a new
NumberExpressionholding the quotient of thisvaluewith thevalueof the givenObservableBigIntegerValue.
-
divide
- Parameters:
other- theObservableDoubleValueholding theNumberto divide.- Returns:
- a new
NumberExpressionholding the quotient of thisvaluewith thevalueof the givenObservableDoubleValue.
-
divide
- Parameters:
other- theObservableFloatValueholding theNumberto divide.- Returns:
- a new
NumberExpressionholding the quotient of thisvaluewith thevalueof the givenObservableFloatValue.
-
divide
- Parameters:
other- theObservableLongValueholding theNumberto divide.- Returns:
- a new
NumberExpressionholding the quotient of thisvaluewith thevalueof the givenObservableLongValue.
-
divide
- Parameters:
other- theObservableIntegerValueholding theNumberto divide.- Returns:
- a new
NumberExpressionholding the quotient of thisvaluewith thevalueof the givenObservableIntegerValue.
-
divide
- Parameters:
other- theObservableShortValueholding theNumberto divide.- Returns:
- a new
NumberExpressionholding the quotient of thisvaluewith thevalueof the givenObservableShortValue.
-
divide
- Parameters:
other- theObservableByteValueholding theNumberto divide.- Returns:
- a new
NumberExpressionholding the quotient of thisvaluewith thevalueof the givenObservableByteValue.
-
divide
- Parameters:
constant- the constantNumberto divide.- Returns:
- a new
NumberExpressionholding the quotient of thisvaluedivided by the givenconstant.
-
divide
- Parameters:
constant- the constantBigDecimalto divide.- Returns:
- a new
BigDecimalExpressionholding the quotient of thisvaluedivided by the givenconstant.
-
divide
- Parameters:
constant- the constantBigIntegerto divide.- Returns:
- a new
NumberExpressionholding the quotient of thisvaluedivided by the givenconstant.
-
divide
- Parameters:
constant- the constantdoubleto divide.- Returns:
- a new
NumberExpressionholding the quotient of thisvaluedivided by the givenconstant.
-
divide
- Parameters:
constant- the constantfloatto divide.- Returns:
- a new
NumberExpressionholding the quotient of thisvaluedivided by the givenconstant.
-
divide
- Parameters:
constant- the constantlongto divide.- Returns:
- a new
NumberExpressionholding the quotient of thisvaluedivided by the givenconstant.
-
divide
- Parameters:
constant- the constantintto divide.- Returns:
- a new
NumberExpressionholding the quotient of thisvaluedivided by the givenconstant.
-
divide
- Parameters:
constant- the constantshortto divide.- Returns:
- a new
NumberExpressionholding the quotient of thisvaluedivided by the givenconstant.
-
divide
- Parameters:
constant- the constantbyteto divide.- Returns:
- a new
NumberExpressionholding the quotient of thisvaluedivided by the givenconstant.
-