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
NumberExpression
holding the negativevalue
.
-
add
default NumberExpression<?> add(ObservableValue<? extends Number> other)
- Parameters:
other
- theObservableValue
holding theNumber
to add.- Returns:
- a new
NumberExpression
holding the sum of thisvalue
with thevalue
of the givenObservableValue
.
-
add
default BigDecimalExpression add(ObservableBigDecimalValue other)
- Parameters:
other
- theObservableBigDecimalValue
holding theNumber
to add.- Returns:
- a new
BigDecimalExpression
holding the sum of thisvalue
with thevalue
of the givenObservableBigDecimalValue
.
-
add
NumberExpression<?> add(ObservableBigIntegerValue other)
- Parameters:
other
- theObservableBigIntegerValue
holding theNumber
to add.- Returns:
- a new
NumberExpression
holding the sum of thisvalue
with thevalue
of the givenObservableBigIntegerValue
.
-
add
NumberExpression<?> add(ObservableDoubleValue other)
- Parameters:
other
- theObservableDoubleValue
holding theNumber
to add.- Returns:
- a new
NumberExpression
holding the sum of thisvalue
with thevalue
of the givenObservableDoubleValue
.
-
add
NumberExpression<?> add(ObservableFloatValue other)
- Parameters:
other
- theObservableFloatValue
holding theNumber
to add.- Returns:
- a new
NumberExpression
holding the sum of thisvalue
with thevalue
of the givenObservableFloatValue
.
-
add
NumberExpression<?> add(ObservableLongValue other)
- Parameters:
other
- theObservableLongValue
holding theNumber
to add.- Returns:
- a new
NumberExpression
holding the sum of thisvalue
with thevalue
of the givenObservableLongValue
.
-
add
NumberExpression<?> add(ObservableIntegerValue other)
- Parameters:
other
- theObservableIntegerValue
holding theNumber
to add.- Returns:
- a new
NumberExpression
holding the sum of thisvalue
with thevalue
of the givenObservableIntegerValue
.
-
add
NumberExpression<?> add(ObservableShortValue other)
- Parameters:
other
- theObservableShortValue
holding theNumber
to add.- Returns:
- a new
NumberExpression
holding the sum of thisvalue
with thevalue
of the givenObservableShortValue
.
-
add
NumberExpression<?> add(ObservableByteValue other)
- Parameters:
other
- theObservableByteValue
holding theNumber
to add.- Returns:
- a new
NumberExpression
holding the sum of thisvalue
with thevalue
of the givenObservableByteValue
.
-
add
default NumberExpression<?> add(Number constant)
- Parameters:
constant
- the constantNumber
to add.- Returns:
- a new
NumberExpression
holding the sum of thisvalue
with the givenconstant
.
-
add
default BigDecimalExpression add(BigDecimal constant)
- Parameters:
constant
- the constantBigDecimal
to add.- Returns:
- a new
BigDecimalExpression
holding the sum of thisvalue
with the givenconstant
.
-
add
NumberExpression<?> add(BigInteger constant)
- Parameters:
constant
- the constantBigInteger
to add.- Returns:
- a new
NumberExpression
holding the sum of thisvalue
with the givenconstant
.
-
add
NumberExpression<?> add(double constant)
- Parameters:
constant
- the constantdouble
to add.- Returns:
- a new
NumberExpression
holding the sum of thisvalue
with the givenconstant
.
-
add
NumberExpression<?> add(float constant)
- Parameters:
constant
- the constantfloat
to add.- Returns:
- a new
NumberExpression
holding the sum of thisvalue
with the givenconstant
.
-
add
NumberExpression<?> add(long constant)
- Parameters:
constant
- the constantlong
to add.- Returns:
- a new
NumberExpression
holding the sum of thisvalue
with the givenconstant
.
-
add
NumberExpression<?> add(int constant)
- Parameters:
constant
- the constantint
to add.- Returns:
- a new
NumberExpression
holding the sum of thisvalue
with the givenconstant
.
-
add
NumberExpression<?> add(short constant)
- Parameters:
constant
- the constantshort
to add.- Returns:
- a new
NumberExpression
holding the sum of thisvalue
with the givenconstant
.
-
add
NumberExpression<?> add(byte constant)
- Parameters:
constant
- the constantbyte
to add.- Returns:
- a new
NumberExpression
holding the sum of thisvalue
with the givenconstant
.
-
subtract
default NumberExpression<?> subtract(ObservableValue<? extends Number> other)
- Parameters:
other
- theObservableValue
holding theNumber
to subtract.- Returns:
- a new
NumberExpression
holding the difference of thisvalue
with thevalue
of the givenObservableValue
.
-
subtract
default BigDecimalExpression subtract(ObservableBigDecimalValue other)
- Parameters:
other
- theObservableBigDecimalValue
holding theNumber
to subtract.- Returns:
- a new
BigDecimalExpression
holding the difference of thisvalue
with thevalue
of the givenObservableBigDecimalValue
.
-
subtract
NumberExpression<?> subtract(ObservableBigIntegerValue other)
- Parameters:
other
- theObservableBigIntegerValue
holding theNumber
to subtract.- Returns:
- a new
NumberExpression
holding the difference of thisvalue
with thevalue
of the givenObservableBigIntegerValue
.
-
subtract
NumberExpression<?> subtract(ObservableDoubleValue other)
- Parameters:
other
- theObservableDoubleValue
holding theNumber
to subtract.- Returns:
- a new
NumberExpression
holding the difference of thisvalue
with thevalue
of the givenObservableDoubleValue
.
-
subtract
NumberExpression<?> subtract(ObservableFloatValue other)
- Parameters:
other
- theObservableFloatValue
holding theNumber
to subtract.- Returns:
- a new
NumberExpression
holding the difference of thisvalue
with thevalue
of the givenObservableFloatValue
.
-
subtract
NumberExpression<?> subtract(ObservableLongValue other)
- Parameters:
other
- theObservableLongValue
holding theNumber
to subtract.- Returns:
- a new
NumberExpression
holding the difference of thisvalue
with thevalue
of the givenObservableLongValue
.
-
subtract
NumberExpression<?> subtract(ObservableIntegerValue other)
- Parameters:
other
- theObservableIntegerValue
holding theNumber
to subtract.- Returns:
- a new
NumberExpression
holding the difference of thisvalue
with thevalue
of the givenObservableIntegerValue
.
-
subtract
NumberExpression<?> subtract(ObservableShortValue other)
- Parameters:
other
- theObservableShortValue
holding theNumber
to subtract.- Returns:
- a new
NumberExpression
holding the difference of thisvalue
with thevalue
of the givenObservableShortValue
.
-
subtract
NumberExpression<?> subtract(ObservableByteValue other)
- Parameters:
other
- theObservableByteValue
holding theNumber
to subtract.- Returns:
- a new
NumberExpression
holding the difference of thisvalue
with thevalue
of the givenObservableByteValue
.
-
subtract
default NumberExpression<?> subtract(Number constant)
- Parameters:
constant
- the constantNumber
to subtract.- Returns:
- a new
NumberExpression
holding the difference of thisvalue
with the givenconstant
.
-
subtract
default BigDecimalExpression subtract(BigDecimal constant)
- Parameters:
constant
- the constantBigDecimal
to subtract.- Returns:
- a new
BigDecimalExpression
holding the difference of thisvalue
with the givenconstant
.
-
subtract
NumberExpression<?> subtract(BigInteger constant)
- Parameters:
constant
- the constantBigInteger
to subtract.- Returns:
- a new
NumberExpression
holding the difference of thisvalue
with the givenconstant
.
-
subtract
NumberExpression<?> subtract(double constant)
- Parameters:
constant
- the constantdouble
to subtract.- Returns:
- a new
NumberExpression
holding the difference of thisvalue
with the givenconstant
.
-
subtract
NumberExpression<?> subtract(float constant)
- Parameters:
constant
- the constantfloat
to subtract.- Returns:
- a new
NumberExpression
holding the difference of thisvalue
with the givenconstant
.
-
subtract
NumberExpression<?> subtract(long constant)
- Parameters:
constant
- the constantlong
to subtract.- Returns:
- a new
NumberExpression
holding the difference of thisvalue
with the givenconstant
.
-
subtract
NumberExpression<?> subtract(int constant)
- Parameters:
constant
- the constantint
to subtract.- Returns:
- a new
NumberExpression
holding the difference of thisvalue
with the givenconstant
.
-
subtract
NumberExpression<?> subtract(short constant)
- Parameters:
constant
- the constantshort
to subtract.- Returns:
- a new
NumberExpression
holding the difference of thisvalue
with the givenconstant
.
-
subtract
NumberExpression<?> subtract(byte constant)
- Parameters:
constant
- the constantbyte
to subtract.- Returns:
- a new
NumberExpression
holding the difference of thisvalue
with the givenconstant
.
-
multiply
default NumberExpression<?> multiply(ObservableValue<? extends Number> other)
- Parameters:
other
- theObservableValue
holding theNumber
to multiply.- Returns:
- a new
NumberExpression
holding the product of thisvalue
with thevalue
of the givenObservableValue
.
-
multiply
default BigDecimalExpression multiply(ObservableBigDecimalValue other)
- Parameters:
other
- theObservableBigDecimalValue
holding theNumber
to multiply.- Returns:
- a new
BigDecimalExpression
holding the product of thisvalue
with thevalue
of the givenObservableBigDecimalValue
.
-
multiply
NumberExpression<?> multiply(ObservableBigIntegerValue other)
- Parameters:
other
- theObservableBigIntegerValue
holding theNumber
to multiply.- Returns:
- a new
NumberExpression
holding the product of thisvalue
with thevalue
of the givenObservableBigIntegerValue
.
-
multiply
NumberExpression<?> multiply(ObservableDoubleValue other)
- Parameters:
other
- theObservableDoubleValue
holding theNumber
to multiply.- Returns:
- a new
NumberExpression
holding the product of thisvalue
with thevalue
of the givenObservableDoubleValue
.
-
multiply
NumberExpression<?> multiply(ObservableFloatValue other)
- Parameters:
other
- theObservableFloatValue
holding theNumber
to multiply.- Returns:
- a new
NumberExpression
holding the product of thisvalue
with thevalue
of the givenObservableFloatValue
.
-
multiply
NumberExpression<?> multiply(ObservableLongValue other)
- Parameters:
other
- theObservableLongValue
holding theNumber
to multiply.- Returns:
- a new
NumberExpression
holding the product of thisvalue
with thevalue
of the givenObservableLongValue
.
-
multiply
NumberExpression<?> multiply(ObservableIntegerValue other)
- Parameters:
other
- theObservableIntegerValue
holding theNumber
to multiply.- Returns:
- a new
NumberExpression
holding the product of thisvalue
with thevalue
of the givenObservableIntegerValue
.
-
multiply
NumberExpression<?> multiply(ObservableShortValue other)
- Parameters:
other
- theObservableShortValue
holding theNumber
to multiply.- Returns:
- a new
NumberExpression
holding the product of thisvalue
with thevalue
of the givenObservableShortValue
.
-
multiply
NumberExpression<?> multiply(ObservableByteValue other)
- Parameters:
other
- theObservableByteValue
holding theNumber
to multiply.- Returns:
- a new
NumberExpression
holding the product of thisvalue
with thevalue
of the givenObservableByteValue
.
-
multiply
default NumberExpression<?> multiply(Number constant)
- Parameters:
constant
- the constantNumber
to multiply.- Returns:
- a new
NumberExpression
holding the product of thisvalue
multiplied with the givenconstant
.
-
multiply
default BigDecimalExpression multiply(BigDecimal constant)
- Parameters:
constant
- the constantBigDecimal
to multiply.- Returns:
- a new
BigDecimalExpression
holding the product of thisvalue
multiplied with the givenconstant
.
-
multiply
NumberExpression<?> multiply(BigInteger constant)
- Parameters:
constant
- the constantBigInteger
to multiply.- Returns:
- a new
NumberExpression
holding the product of thisvalue
multiplied with the givenconstant
.
-
multiply
NumberExpression<?> multiply(double constant)
- Parameters:
constant
- the constantdouble
to multiply.- Returns:
- a new
NumberExpression
holding the product of thisvalue
multiplied with the givenconstant
.
-
multiply
NumberExpression<?> multiply(float constant)
- Parameters:
constant
- the constantfloat
to multiply.- Returns:
- a new
NumberExpression
holding the product of thisvalue
multiplied with the givenconstant
.
-
multiply
NumberExpression<?> multiply(long constant)
- Parameters:
constant
- the constantlong
to multiply.- Returns:
- a new
NumberExpression
holding the product of thisvalue
multiplied with the givenconstant
.
-
multiply
NumberExpression<?> multiply(int constant)
- Parameters:
constant
- the constantint
to multiply.- Returns:
- a new
NumberExpression
holding the product of thisvalue
multiplied with the givenconstant
.
-
multiply
NumberExpression<?> multiply(short constant)
- Parameters:
constant
- the constantshort
to multiply.- Returns:
- a new
NumberExpression
holding the product of thisvalue
multiplied with the givenconstant
.
-
multiply
NumberExpression<?> multiply(byte constant)
- Parameters:
constant
- the constantbyte
to multiply.- Returns:
- a new
NumberExpression
holding the product of thisvalue
multiplied with the givenconstant
.
-
divide
default NumberExpression<?> divide(ObservableValue<? extends Number> other)
- Parameters:
other
- theObservableValue
holding theNumber
to divide.- Returns:
- a new
NumberExpression
holding the quotient of thisvalue
with thevalue
of the givenObservableValue
.
-
divide
default BigDecimalExpression divide(ObservableBigDecimalValue other)
- Parameters:
other
- theObservableBigDecimalValue
holding theNumber
to divide.- Returns:
- a new
BigDecimalExpression
holding the quotient of thisvalue
with thevalue
of the givenObservableBigDecimalValue
.
-
divide
NumberExpression<?> divide(ObservableBigIntegerValue other)
- Parameters:
other
- theObservableBigIntegerValue
holding theNumber
to divide.- Returns:
- a new
NumberExpression
holding the quotient of thisvalue
with thevalue
of the givenObservableBigIntegerValue
.
-
divide
NumberExpression<?> divide(ObservableDoubleValue other)
- Parameters:
other
- theObservableDoubleValue
holding theNumber
to divide.- Returns:
- a new
NumberExpression
holding the quotient of thisvalue
with thevalue
of the givenObservableDoubleValue
.
-
divide
NumberExpression<?> divide(ObservableFloatValue other)
- Parameters:
other
- theObservableFloatValue
holding theNumber
to divide.- Returns:
- a new
NumberExpression
holding the quotient of thisvalue
with thevalue
of the givenObservableFloatValue
.
-
divide
NumberExpression<?> divide(ObservableLongValue other)
- Parameters:
other
- theObservableLongValue
holding theNumber
to divide.- Returns:
- a new
NumberExpression
holding the quotient of thisvalue
with thevalue
of the givenObservableLongValue
.
-
divide
NumberExpression<?> divide(ObservableIntegerValue other)
- Parameters:
other
- theObservableIntegerValue
holding theNumber
to divide.- Returns:
- a new
NumberExpression
holding the quotient of thisvalue
with thevalue
of the givenObservableIntegerValue
.
-
divide
NumberExpression<?> divide(ObservableShortValue other)
- Parameters:
other
- theObservableShortValue
holding theNumber
to divide.- Returns:
- a new
NumberExpression
holding the quotient of thisvalue
with thevalue
of the givenObservableShortValue
.
-
divide
NumberExpression<?> divide(ObservableByteValue other)
- Parameters:
other
- theObservableByteValue
holding theNumber
to divide.- Returns:
- a new
NumberExpression
holding the quotient of thisvalue
with thevalue
of the givenObservableByteValue
.
-
divide
default NumberExpression<?> divide(Number constant)
- Parameters:
constant
- the constantNumber
to divide.- Returns:
- a new
NumberExpression
holding the quotient of thisvalue
divided by the givenconstant
.
-
divide
default BigDecimalExpression divide(BigDecimal constant)
- Parameters:
constant
- the constantBigDecimal
to divide.- Returns:
- a new
BigDecimalExpression
holding the quotient of thisvalue
divided by the givenconstant
.
-
divide
NumberExpression<?> divide(BigInteger constant)
- Parameters:
constant
- the constantBigInteger
to divide.- Returns:
- a new
NumberExpression
holding the quotient of thisvalue
divided by the givenconstant
.
-
divide
NumberExpression<?> divide(double constant)
- Parameters:
constant
- the constantdouble
to divide.- Returns:
- a new
NumberExpression
holding the quotient of thisvalue
divided by the givenconstant
.
-
divide
NumberExpression<?> divide(float constant)
- Parameters:
constant
- the constantfloat
to divide.- Returns:
- a new
NumberExpression
holding the quotient of thisvalue
divided by the givenconstant
.
-
divide
NumberExpression<?> divide(long constant)
- Parameters:
constant
- the constantlong
to divide.- Returns:
- a new
NumberExpression
holding the quotient of thisvalue
divided by the givenconstant
.
-
divide
NumberExpression<?> divide(int constant)
- Parameters:
constant
- the constantint
to divide.- Returns:
- a new
NumberExpression
holding the quotient of thisvalue
divided by the givenconstant
.
-
divide
NumberExpression<?> divide(short constant)
- Parameters:
constant
- the constantshort
to divide.- Returns:
- a new
NumberExpression
holding the quotient of thisvalue
divided by the givenconstant
.
-
divide
NumberExpression<?> divide(byte constant)
- Parameters:
constant
- the constantbyte
to divide.- Returns:
- a new
NumberExpression
holding the quotient of thisvalue
divided by the givenconstant
.
-
-