V
- the type of the elements of the field on which all the operations are based on.public class QuantityExpressionSupport<V>
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
protected |
QuantityExpressionSupport(QuantityEnvironment<V> environment) |
Modifier and Type | Method and Description |
---|---|
OngoingDeferredQuantifiedScalarOperation<V> |
calculate(Expression<QuantifiedValue<V>> scalar) |
OngoingDeferredQuantifiedScalarOperation<V> |
calculate(V value,
javax.measure.unit.Unit<?> unit) |
Expression<QuantifiedValue<V>> |
inverseOf(Expression<QuantifiedValue<V>> element) |
Expression<QuantifiedValue<V>> |
inverseOf(QuantifiedValue<V> element) |
Expression<QuantifiedValue<V>> |
negativeOf(Expression<QuantifiedValue<V>> element) |
Expression<QuantifiedValue<V>> |
negativeOf(QuantifiedValue<V> element) |
QuantifiedValue<V> |
one() |
QuantifiedValue<V> |
two() |
Expression<QuantifiedValue<V>> |
valueOf(V value,
Unit unit) |
Expression<QuantifiedValue<V>> |
valueOf(V value,
javax.measure.unit.Unit<?> unit) |
QuantifiedValue<V> |
zero() |
protected QuantityExpressionSupport(QuantityEnvironment<V> environment)
public Expression<QuantifiedValue<V>> valueOf(V value, Unit unit)
public Expression<QuantifiedValue<V>> valueOf(V value, javax.measure.unit.Unit<?> unit)
public OngoingDeferredQuantifiedScalarOperation<V> calculate(V value, javax.measure.unit.Unit<?> unit)
public OngoingDeferredQuantifiedScalarOperation<V> calculate(Expression<QuantifiedValue<V>> scalar)
public Expression<QuantifiedValue<V>> negativeOf(QuantifiedValue<V> element)
public Expression<QuantifiedValue<V>> negativeOf(Expression<QuantifiedValue<V>> element)
public Expression<QuantifiedValue<V>> inverseOf(QuantifiedValue<V> element)
public Expression<QuantifiedValue<V>> inverseOf(Expression<QuantifiedValue<V>> element)
public QuantifiedValue<V> one()
public QuantifiedValue<V> zero()
public QuantifiedValue<V> two()