Class Quantity
java.lang.Object
java.lang.Number
java.math.BigDecimal
com.fourjs.report.facturx.Quantity
- All Implemented Interfaces:
Serializable, Comparable<BigDecimal>
Represents the Quantity data type described in section 7.1.5, "Data types", of the
Factur-X specification: a decimal number of units.
- See Also:
-
Field Summary
Fields inherited from class BigDecimal
ONE, ROUND_CEILING, ROUND_DOWN, ROUND_FLOOR, ROUND_HALF_DOWN, ROUND_HALF_EVEN, ROUND_HALF_UP, ROUND_UNNECESSARY, ROUND_UP, TEN, TWO, ZERO -
Method Summary
Modifier and TypeMethodDescriptionstatic QuantityfromString(String value) Returns aQuantityholding the value parsed from a decimal string; surrounding whitespace is ignored.static QuantityvalueOf(double value) Returns aQuantityholding the given value.static QuantityvalueOf(int value) Returns aQuantityholding the given value.static QuantityReturns aQuantityholding the value parsed from a decimal string; surrounding whitespace is ignored.static QuantityvalueOf(BigDecimal value) Returns aQuantityholding the given value.Methods inherited from class BigDecimal
abs, abs, add, add, byteValueExact, compareTo, divide, divide, divide, divide, divide, divide, divideAndRemainder, divideAndRemainder, divideToIntegralValue, divideToIntegralValue, doubleValue, equals, floatValue, hashCode, intValue, intValueExact, longValue, longValueExact, max, min, movePointLeft, movePointRight, multiply, multiply, negate, negate, plus, plus, pow, pow, precision, remainder, remainder, round, scale, scaleByPowerOfTen, setScale, setScale, setScale, shortValueExact, signum, sqrt, stripTrailingZeros, subtract, subtract, toBigInteger, toBigIntegerExact, toEngineeringString, toPlainString, ulp, unscaledValue, valueOf, valueOfMethods inherited from class Number
byteValue, shortValue
-
Method Details
-
fromString
-
valueOf
Returns aQuantityholding the given value.- Parameters:
value- the value- Returns:
- a
Quantityequal tovalue
-
valueOf
-
valueOf
Returns aQuantityholding the given value.- Parameters:
value- the value- Returns:
- a
Quantityequal tovalue
-
valueOf
Returns aQuantityholding the given value.- Parameters:
value- the value- Returns:
- a
Quantityequal tovalue
-