Package ca.uhn.fhir.util
Class NumericParamRangeUtil
java.lang.Object
ca.uhn.fhir.util.NumericParamRangeUtil
-
Method Summary
Modifier and TypeMethodDescriptionstatic org.apache.commons.lang3.tuple.Pair
<BigDecimal, BigDecimal> getRange
(BigDecimal theNumber) Provides a Pair containing the low and high boundaries for a range based on the received number characteristics.
-
Method Details
-
getRange
public static org.apache.commons.lang3.tuple.Pair<BigDecimal,BigDecimal> getRange(BigDecimal theNumber) Provides a Pair containing the low and high boundaries for a range based on the received number characteristics. Note that the scale is used to calculate significant figures- Parameters:
theNumber
- the number which range is returned- Returns:
- a Pair of BigDecimal(s) with the low and high range boundaries
-