Class Quantity
java.lang.Object
org.opencds.cqf.cql.engine.runtime.Quantity
- All Implemented Interfaces:
Comparable<Quantity>,CqlType
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintequivalent(Object other) getUnit()getValue()booleanisDefaultUnit(String unit) nullableCompareTo(Quantity other) voidvoidsetValue(BigDecimal value) toString()booleanunitsEqual(String leftUnit, String rightUnit) booleanunitsEquivalent(String leftUnit, String rightUnit) withValue(BigDecimal value)
-
Constructor Details
-
Quantity
public Quantity()
-
-
Method Details
-
getValue
-
setValue
-
withValue
-
getUnit
-
setUnit
-
withUnit
-
withDefaultUnit
-
isDefaultUnit
-
unitsEqual
-
unitsEquivalent
-
compareTo
- Specified by:
compareToin interfaceComparable<Quantity>
-
nullableCompareTo
-
equivalent
- Specified by:
equivalentin interfaceCqlType
-
equal
-
toString
-