Interface LongExpression
-
- All Superinterfaces:
ComparableExpression<Long>
,EventSource<ObservableEvent<Long>,ObservableEventListener<? super Long>>
,Expression<Long>
,NumberExpression<Long>
,ObservableLongValue
,ObservableNumberValue<Long>
,ObservableSimpleValue<Long>
,ObservableValue<Long>
,ReadableLongValue
,ReadableNumberValue<Long>
,ReadableSimpleValue<Long>
,ReadableTypedValue<Long>
,ReadableValue<Long>
,Supplier<Long>
- All Known Subinterfaces:
ReadableLongProperty
,WritableLongProperty
- All Known Implementing Classes:
DurationInSecondsProperty
,LongBinding
,LongProperty
public interface LongExpression extends ObservableLongValue, NumberExpression<Long>
- 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.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.longs.ReadableLongValue
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
-
-
-
-
Method Detail
-
negate
default LongExpression negate()
- Specified by:
negate
in interfaceNumberExpression<Long>
- Returns:
- a
NumberExpression
holding the negativevalue
.
-
add
default BigIntegerExpression add(ObservableBigIntegerValue other)
- Specified by:
add
in interfaceNumberExpression<Long>
- Parameters:
other
- theObservableBigIntegerValue
holding theNumber
to add.- Returns:
- a new
NumberExpression
holding the sum of thisvalue
with thevalue
of the givenObservableBigIntegerValue
.
-
add
default DoubleExpression add(ObservableDoubleValue other)
- Specified by:
add
in interfaceNumberExpression<Long>
- Parameters:
other
- theObservableDoubleValue
holding theNumber
to add.- Returns:
- a new
NumberExpression
holding the sum of thisvalue
with thevalue
of the givenObservableDoubleValue
.
-
add
default FloatExpression add(ObservableFloatValue other)
- Specified by:
add
in interfaceNumberExpression<Long>
- Parameters:
other
- theObservableFloatValue
holding theNumber
to add.- Returns:
- a new
NumberExpression
holding the sum of thisvalue
with thevalue
of the givenObservableFloatValue
.
-
add
default LongExpression add(ObservableLongValue other)
- Specified by:
add
in interfaceNumberExpression<Long>
- Parameters:
other
- theObservableLongValue
holding theNumber
to add.- Returns:
- a new
NumberExpression
holding the sum of thisvalue
with thevalue
of the givenObservableLongValue
.
-
add
default LongExpression add(ObservableIntegerValue other)
- Specified by:
add
in interfaceNumberExpression<Long>
- Parameters:
other
- theObservableIntegerValue
holding theNumber
to add.- Returns:
- a new
NumberExpression
holding the sum of thisvalue
with thevalue
of the givenObservableIntegerValue
.
-
add
default LongExpression add(ObservableShortValue other)
- Specified by:
add
in interfaceNumberExpression<Long>
- Parameters:
other
- theObservableShortValue
holding theNumber
to add.- Returns:
- a new
NumberExpression
holding the sum of thisvalue
with thevalue
of the givenObservableShortValue
.
-
add
default LongExpression add(ObservableByteValue other)
- Specified by:
add
in interfaceNumberExpression<Long>
- Parameters:
other
- theObservableByteValue
holding theNumber
to add.- Returns:
- a new
NumberExpression
holding the sum of thisvalue
with thevalue
of the givenObservableByteValue
.
-
add
default BigIntegerExpression add(BigInteger constant)
- Specified by:
add
in interfaceNumberExpression<Long>
- Parameters:
constant
- the constantBigInteger
to add.- Returns:
- a new
NumberExpression
holding the sum of thisvalue
with the givenconstant
.
-
add
default DoubleExpression add(double constant)
- Specified by:
add
in interfaceNumberExpression<Long>
- Parameters:
constant
- the constantdouble
to add.- Returns:
- a new
NumberExpression
holding the sum of thisvalue
with the givenconstant
.
-
add
default FloatExpression add(float constant)
- Specified by:
add
in interfaceNumberExpression<Long>
- Parameters:
constant
- the constantfloat
to add.- Returns:
- a new
NumberExpression
holding the sum of thisvalue
with the givenconstant
.
-
add
default LongExpression add(long constant)
- Specified by:
add
in interfaceNumberExpression<Long>
- Parameters:
constant
- the constantlong
to add.- Returns:
- a new
NumberExpression
holding the sum of thisvalue
with the givenconstant
.
-
add
default LongExpression add(int constant)
- Specified by:
add
in interfaceNumberExpression<Long>
- Parameters:
constant
- the constantint
to add.- Returns:
- a new
NumberExpression
holding the sum of thisvalue
with the givenconstant
.
-
add
default LongExpression add(short constant)
- Specified by:
add
in interfaceNumberExpression<Long>
- Parameters:
constant
- the constantshort
to add.- Returns:
- a new
NumberExpression
holding the sum of thisvalue
with the givenconstant
.
-
add
default LongExpression add(byte constant)
- Specified by:
add
in interfaceNumberExpression<Long>
- Parameters:
constant
- the constantbyte
to add.- Returns:
- a new
NumberExpression
holding the sum of thisvalue
with the givenconstant
.
-
subtract
default BigIntegerExpression subtract(ObservableBigIntegerValue other)
- Specified by:
subtract
in interfaceNumberExpression<Long>
- Parameters:
other
- theObservableBigIntegerValue
holding theNumber
to subtract.- Returns:
- a new
NumberExpression
holding the difference of thisvalue
with thevalue
of the givenObservableBigIntegerValue
.
-
subtract
default DoubleExpression subtract(ObservableDoubleValue other)
- Specified by:
subtract
in interfaceNumberExpression<Long>
- Parameters:
other
- theObservableDoubleValue
holding theNumber
to subtract.- Returns:
- a new
NumberExpression
holding the difference of thisvalue
with thevalue
of the givenObservableDoubleValue
.
-
subtract
default FloatExpression subtract(ObservableFloatValue other)
- Specified by:
subtract
in interfaceNumberExpression<Long>
- Parameters:
other
- theObservableFloatValue
holding theNumber
to subtract.- Returns:
- a new
NumberExpression
holding the difference of thisvalue
with thevalue
of the givenObservableFloatValue
.
-
subtract
default LongExpression subtract(ObservableLongValue other)
- Specified by:
subtract
in interfaceNumberExpression<Long>
- Parameters:
other
- theObservableLongValue
holding theNumber
to subtract.- Returns:
- a new
NumberExpression
holding the difference of thisvalue
with thevalue
of the givenObservableLongValue
.
-
subtract
default LongExpression subtract(ObservableIntegerValue other)
- Specified by:
subtract
in interfaceNumberExpression<Long>
- Parameters:
other
- theObservableIntegerValue
holding theNumber
to subtract.- Returns:
- a new
NumberExpression
holding the difference of thisvalue
with thevalue
of the givenObservableIntegerValue
.
-
subtract
default LongExpression subtract(ObservableShortValue other)
- Specified by:
subtract
in interfaceNumberExpression<Long>
- Parameters:
other
- theObservableShortValue
holding theNumber
to subtract.- Returns:
- a new
NumberExpression
holding the difference of thisvalue
with thevalue
of the givenObservableShortValue
.
-
subtract
default LongExpression subtract(ObservableByteValue other)
- Specified by:
subtract
in interfaceNumberExpression<Long>
- Parameters:
other
- theObservableByteValue
holding theNumber
to subtract.- Returns:
- a new
NumberExpression
holding the difference of thisvalue
with thevalue
of the givenObservableByteValue
.
-
subtract
default BigIntegerExpression subtract(BigInteger constant)
- Specified by:
subtract
in interfaceNumberExpression<Long>
- Parameters:
constant
- the constantBigInteger
to subtract.- Returns:
- a new
NumberExpression
holding the difference of thisvalue
with the givenconstant
.
-
subtract
default DoubleExpression subtract(double constant)
- Specified by:
subtract
in interfaceNumberExpression<Long>
- Parameters:
constant
- the constantdouble
to subtract.- Returns:
- a new
NumberExpression
holding the difference of thisvalue
with the givenconstant
.
-
subtract
default FloatExpression subtract(float constant)
- Specified by:
subtract
in interfaceNumberExpression<Long>
- Parameters:
constant
- the constantfloat
to subtract.- Returns:
- a new
NumberExpression
holding the difference of thisvalue
with the givenconstant
.
-
subtract
default LongExpression subtract(long constant)
- Specified by:
subtract
in interfaceNumberExpression<Long>
- Parameters:
constant
- the constantlong
to subtract.- Returns:
- a new
NumberExpression
holding the difference of thisvalue
with the givenconstant
.
-
subtract
default LongExpression subtract(int constant)
- Specified by:
subtract
in interfaceNumberExpression<Long>
- Parameters:
constant
- the constantint
to subtract.- Returns:
- a new
NumberExpression
holding the difference of thisvalue
with the givenconstant
.
-
subtract
default LongExpression subtract(short constant)
- Specified by:
subtract
in interfaceNumberExpression<Long>
- Parameters:
constant
- the constantshort
to subtract.- Returns:
- a new
NumberExpression
holding the difference of thisvalue
with the givenconstant
.
-
subtract
default LongExpression subtract(byte constant)
- Specified by:
subtract
in interfaceNumberExpression<Long>
- Parameters:
constant
- the constantbyte
to subtract.- Returns:
- a new
NumberExpression
holding the difference of thisvalue
with the givenconstant
.
-
multiply
default BigIntegerExpression multiply(ObservableBigIntegerValue other)
- Specified by:
multiply
in interfaceNumberExpression<Long>
- Parameters:
other
- theObservableBigIntegerValue
holding theNumber
to multiply.- Returns:
- a new
NumberExpression
holding the product of thisvalue
with thevalue
of the givenObservableBigIntegerValue
.
-
multiply
default DoubleExpression multiply(ObservableDoubleValue other)
- Specified by:
multiply
in interfaceNumberExpression<Long>
- Parameters:
other
- theObservableDoubleValue
holding theNumber
to multiply.- Returns:
- a new
NumberExpression
holding the product of thisvalue
with thevalue
of the givenObservableDoubleValue
.
-
multiply
default FloatExpression multiply(ObservableFloatValue other)
- Specified by:
multiply
in interfaceNumberExpression<Long>
- Parameters:
other
- theObservableFloatValue
holding theNumber
to multiply.- Returns:
- a new
NumberExpression
holding the product of thisvalue
with thevalue
of the givenObservableFloatValue
.
-
multiply
default LongExpression multiply(ObservableLongValue other)
- Specified by:
multiply
in interfaceNumberExpression<Long>
- Parameters:
other
- theObservableLongValue
holding theNumber
to multiply.- Returns:
- a new
NumberExpression
holding the product of thisvalue
with thevalue
of the givenObservableLongValue
.
-
multiply
default LongExpression multiply(ObservableIntegerValue other)
- Specified by:
multiply
in interfaceNumberExpression<Long>
- Parameters:
other
- theObservableIntegerValue
holding theNumber
to multiply.- Returns:
- a new
NumberExpression
holding the product of thisvalue
with thevalue
of the givenObservableIntegerValue
.
-
multiply
default LongExpression multiply(ObservableShortValue other)
- Specified by:
multiply
in interfaceNumberExpression<Long>
- Parameters:
other
- theObservableShortValue
holding theNumber
to multiply.- Returns:
- a new
NumberExpression
holding the product of thisvalue
with thevalue
of the givenObservableShortValue
.
-
multiply
default LongExpression multiply(ObservableByteValue other)
- Specified by:
multiply
in interfaceNumberExpression<Long>
- Parameters:
other
- theObservableByteValue
holding theNumber
to multiply.- Returns:
- a new
NumberExpression
holding the product of thisvalue
with thevalue
of the givenObservableByteValue
.
-
multiply
default BigIntegerExpression multiply(BigInteger constant)
- Specified by:
multiply
in interfaceNumberExpression<Long>
- Parameters:
constant
- the constantBigInteger
to multiply.- Returns:
- a new
NumberExpression
holding the product of thisvalue
multiplied with the givenconstant
.
-
multiply
default DoubleExpression multiply(double constant)
- Specified by:
multiply
in interfaceNumberExpression<Long>
- Parameters:
constant
- the constantdouble
to multiply.- Returns:
- a new
NumberExpression
holding the product of thisvalue
multiplied with the givenconstant
.
-
multiply
default FloatExpression multiply(float constant)
- Specified by:
multiply
in interfaceNumberExpression<Long>
- Parameters:
constant
- the constantfloat
to multiply.- Returns:
- a new
NumberExpression
holding the product of thisvalue
multiplied with the givenconstant
.
-
multiply
default LongExpression multiply(long constant)
- Specified by:
multiply
in interfaceNumberExpression<Long>
- Parameters:
constant
- the constantlong
to multiply.- Returns:
- a new
NumberExpression
holding the product of thisvalue
multiplied with the givenconstant
.
-
multiply
default LongExpression multiply(int constant)
- Specified by:
multiply
in interfaceNumberExpression<Long>
- Parameters:
constant
- the constantint
to multiply.- Returns:
- a new
NumberExpression
holding the product of thisvalue
multiplied with the givenconstant
.
-
multiply
default LongExpression multiply(short constant)
- Specified by:
multiply
in interfaceNumberExpression<Long>
- Parameters:
constant
- the constantshort
to multiply.- Returns:
- a new
NumberExpression
holding the product of thisvalue
multiplied with the givenconstant
.
-
multiply
default LongExpression multiply(byte constant)
- Specified by:
multiply
in interfaceNumberExpression<Long>
- Parameters:
constant
- the constantbyte
to multiply.- Returns:
- a new
NumberExpression
holding the product of thisvalue
multiplied with the givenconstant
.
-
divide
default BigIntegerExpression divide(ObservableBigIntegerValue other)
- Specified by:
divide
in interfaceNumberExpression<Long>
- Parameters:
other
- theObservableBigIntegerValue
holding theNumber
to divide.- Returns:
- a new
NumberExpression
holding the quotient of thisvalue
with thevalue
of the givenObservableBigIntegerValue
.
-
divide
default DoubleExpression divide(ObservableDoubleValue other)
- Specified by:
divide
in interfaceNumberExpression<Long>
- Parameters:
other
- theObservableDoubleValue
holding theNumber
to divide.- Returns:
- a new
NumberExpression
holding the quotient of thisvalue
with thevalue
of the givenObservableDoubleValue
.
-
divide
default FloatExpression divide(ObservableFloatValue other)
- Specified by:
divide
in interfaceNumberExpression<Long>
- Parameters:
other
- theObservableFloatValue
holding theNumber
to divide.- Returns:
- a new
NumberExpression
holding the quotient of thisvalue
with thevalue
of the givenObservableFloatValue
.
-
divide
default LongExpression divide(ObservableLongValue other)
- Specified by:
divide
in interfaceNumberExpression<Long>
- Parameters:
other
- theObservableLongValue
holding theNumber
to divide.- Returns:
- a new
NumberExpression
holding the quotient of thisvalue
with thevalue
of the givenObservableLongValue
.
-
divide
default LongExpression divide(ObservableIntegerValue other)
- Specified by:
divide
in interfaceNumberExpression<Long>
- Parameters:
other
- theObservableIntegerValue
holding theNumber
to divide.- Returns:
- a new
NumberExpression
holding the quotient of thisvalue
with thevalue
of the givenObservableIntegerValue
.
-
divide
default LongExpression divide(ObservableShortValue other)
- Specified by:
divide
in interfaceNumberExpression<Long>
- Parameters:
other
- theObservableShortValue
holding theNumber
to divide.- Returns:
- a new
NumberExpression
holding the quotient of thisvalue
with thevalue
of the givenObservableShortValue
.
-
divide
default LongExpression divide(ObservableByteValue other)
- Specified by:
divide
in interfaceNumberExpression<Long>
- Parameters:
other
- theObservableByteValue
holding theNumber
to divide.- Returns:
- a new
NumberExpression
holding the quotient of thisvalue
with thevalue
of the givenObservableByteValue
.
-
divide
default BigIntegerExpression divide(BigInteger constant)
- Specified by:
divide
in interfaceNumberExpression<Long>
- Parameters:
constant
- the constantBigInteger
to divide.- Returns:
- a new
NumberExpression
holding the quotient of thisvalue
divided by the givenconstant
.
-
divide
default DoubleExpression divide(double constant)
- Specified by:
divide
in interfaceNumberExpression<Long>
- Parameters:
constant
- the constantdouble
to divide.- Returns:
- a new
NumberExpression
holding the quotient of thisvalue
divided by the givenconstant
.
-
divide
default FloatExpression divide(float constant)
- Specified by:
divide
in interfaceNumberExpression<Long>
- Parameters:
constant
- the constantfloat
to divide.- Returns:
- a new
NumberExpression
holding the quotient of thisvalue
divided by the givenconstant
.
-
divide
default LongExpression divide(long constant)
- Specified by:
divide
in interfaceNumberExpression<Long>
- Parameters:
constant
- the constantlong
to divide.- Returns:
- a new
NumberExpression
holding the quotient of thisvalue
divided by the givenconstant
.
-
divide
default LongExpression divide(int constant)
- Specified by:
divide
in interfaceNumberExpression<Long>
- Parameters:
constant
- the constantint
to divide.- Returns:
- a new
NumberExpression
holding the quotient of thisvalue
divided by the givenconstant
.
-
divide
default LongExpression divide(short constant)
- Specified by:
divide
in interfaceNumberExpression<Long>
- Parameters:
constant
- the constantshort
to divide.- Returns:
- a new
NumberExpression
holding the quotient of thisvalue
divided by the givenconstant
.
-
divide
default LongExpression divide(byte constant)
- Specified by:
divide
in interfaceNumberExpression<Long>
- Parameters:
constant
- the constantbyte
to divide.- Returns:
- a new
NumberExpression
holding the quotient of thisvalue
divided by the givenconstant
.
-
-