/** * Creates a {@link QuantityValue} with an empty unit and without bounds. * * @param numericValue * the numeric value of this quantity * @return a {@link QuantityValue} corresponding to the input */ public static QuantityValue makeQuantityValue(BigDecimal numericValue) { return factory.getQuantityValue(numericValue); }
/** * Creates a {@link QuantityValue} with an empty unit and without bounds. * * @param numericValue * the numeric value of this quantity * @return a {@link QuantityValue} corresponding to the input */ public static QuantityValue makeQuantityValue(BigDecimal numericValue) { return factory.getQuantityValue(numericValue); }
/** * Creates a {@link QuantityValue} without bounds. * * @param numericValue * the numeric value of this quantity * @param unit * the unit identifier to use for this quantity * @return a {@link QuantityValue} corresponding to the input */ public static QuantityValue makeQuantityValue(BigDecimal numericValue, String unit) { return factory.getQuantityValue(numericValue, unit); }
/** * Creates a {@link QuantityValue} without bounds. * * @param numericValue * the numeric value of this quantity * @param unit * the unit identifier to use for this quantity * @return a {@link QuantityValue} corresponding to the input */ public static QuantityValue makeQuantityValue(BigDecimal numericValue, String unit) { return factory.getQuantityValue(numericValue, unit); }
/** * Creates a {@link QuantityValue} with an empty unit. * * @param numericValue * the numeric value of this quantity * @param lowerBound * the lower bound of the numeric value of this quantity * @param upperBound * the upper bound of the numeric value of this quantity * @return a {@link QuantityValue} corresponding to the input */ public static QuantityValue makeQuantityValue(BigDecimal numericValue, BigDecimal lowerBound, BigDecimal upperBound) { return factory.getQuantityValue(numericValue, lowerBound, upperBound); }
/** * Creates a {@link QuantityValue} with an empty unit. * * @param numericValue * the numeric value of this quantity * @param lowerBound * the lower bound of the numeric value of this quantity * @param upperBound * the upper bound of the numeric value of this quantity * @return a {@link QuantityValue} corresponding to the input */ public static QuantityValue makeQuantityValue(BigDecimal numericValue, BigDecimal lowerBound, BigDecimal upperBound) { return factory.getQuantityValue(numericValue, lowerBound, upperBound); }
/** * Creates a {@link QuantityValue}. * * @param numericValue * the numeric value of this quantity * @param lowerBound * the lower bound of the numeric value of this quantity * @param upperBound * the upper bound of the numeric value of this quantity * @param unit * the unit identifier to use for this quantity * @return a {@link QuantityValue} corresponding to the input */ public static QuantityValue makeQuantityValue(BigDecimal numericValue, BigDecimal lowerBound, BigDecimal upperBound, String unit) { return factory.getQuantityValue(numericValue, lowerBound, upperBound, unit); }
/** * Creates a {@link QuantityValue}. * * @param numericValue * the numeric value of this quantity * @param lowerBound * the lower bound of the numeric value of this quantity * @param upperBound * the upper bound of the numeric value of this quantity * @param unit * the unit identifier to use for this quantity * @return a {@link QuantityValue} corresponding to the input */ public static QuantityValue makeQuantityValue(BigDecimal numericValue, BigDecimal lowerBound, BigDecimal upperBound, String unit) { return factory.getQuantityValue(numericValue, lowerBound, upperBound, unit); }
/** * Creates a {@link QuantityValue} from long numbers. * * @param numericValue * the numeric value of this quantity * @param lowerBound * the lower bound of the numeric value of this quantity * @param upperBound * the upper bound of the numeric value of this quantity * @return a {@link QuantityValue} corresponding to the input */ public static QuantityValue makeQuantityValue(long numericValue, long lowerBound, long upperBound) { return factory.getQuantityValue(new BigDecimal(numericValue), new BigDecimal(lowerBound), new BigDecimal(upperBound)); }
/** * Creates a {@link QuantityValue} from long numbers. * * @param numericValue * the numeric value of this quantity * @param lowerBound * the lower bound of the numeric value of this quantity * @param upperBound * the upper bound of the numeric value of this quantity * @return a {@link QuantityValue} corresponding to the input */ public static QuantityValue makeQuantityValue(long numericValue, long lowerBound, long upperBound) { return factory.getQuantityValue(new BigDecimal(numericValue), new BigDecimal(lowerBound), new BigDecimal(upperBound)); }
/** * Copies a {@link QuantityValue}. * * @param object * object to copy * @return copied object */ public QuantityValue copy(QuantityValue object) { return dataObjectFactory.getQuantityValue( object.getNumericValue(), object.getLowerBound(), object.getUpperBound(), object.getUnit()); }
/** * Copies a {@link QuantityValue}. * * @param object * object to copy * @return copied object */ public QuantityValue copy(QuantityValue object) { return dataObjectFactory.getQuantityValue( object.getNumericValue(), object.getLowerBound(), object.getUpperBound(), object.getUnit()); }