V
- the type of the scalar values (elements of the field which is used for the operations)public class QuantitySupport<V>
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
protected |
QuantitySupport(QuantityEnvironment<V> environment) |
Modifier and Type | Method and Description |
---|---|
QuantifiedValue<V> |
absoluteValueOf(QuantifiedValue<V> element) |
OngoingQuantifiedScalarOperation<V> |
calculate(QuantifiedValue<V> scalar) |
OngoingQuantifiedScalarOperation<V> |
calculate(V value,
javax.measure.unit.Unit<?> unit) |
OngoingQuantifiedScalarConversion<V> |
convert(QuantifiedValue<V> value) |
QuantifiedValue<V> |
inverseOf(QuantifiedValue<V> element) |
QuantifiedValue<V> |
negativeOf(QuantifiedValue<V> element) |
QuantifiedValue<V> |
one() |
protected QuantityOperationRepository<V> |
operationRepository() |
protected QuantityPedicateRepository<V> |
predicateRepository() |
OngoingQuantifiedScalarBinaryPredicate<V> |
testIf(QuantifiedValue<V> left) |
QuantifiedValue<V> |
two() |
OngoingQuantityValueExtraction<V> |
valueOf(QuantifiedValue<V> quantity) |
QuantifiedValue<V> |
valueOf(V value,
Unit unit) |
QuantifiedValue<V> |
valueOf(V value,
javax.measure.unit.Unit<?> unit) |
QuantifiedValue<V> |
zero() |
protected QuantitySupport(QuantityEnvironment<V> environment)
public QuantifiedValue<V> valueOf(V value, Unit unit)
public QuantifiedValue<V> valueOf(V value, javax.measure.unit.Unit<?> unit)
public OngoingQuantifiedScalarOperation<V> calculate(V value, javax.measure.unit.Unit<?> unit)
public OngoingQuantifiedScalarOperation<V> calculate(QuantifiedValue<V> scalar)
public QuantifiedValue<V> negativeOf(QuantifiedValue<V> element)
public QuantifiedValue<V> inverseOf(QuantifiedValue<V> element)
public QuantifiedValue<V> absoluteValueOf(QuantifiedValue<V> element)
public QuantifiedValue<V> one()
public QuantifiedValue<V> zero()
public QuantifiedValue<V> two()
public OngoingQuantifiedScalarConversion<V> convert(QuantifiedValue<V> value)
public OngoingQuantityValueExtraction<V> valueOf(QuantifiedValue<V> quantity)
protected QuantityOperationRepository<V> operationRepository()
protected QuantityPedicateRepository<V> predicateRepository()
public OngoingQuantifiedScalarBinaryPredicate<V> testIf(QuantifiedValue<V> left)