Class Amount
java.lang.Object
java.lang.Number
java.math.BigDecimal
com.fourjs.report.facturx.Amount
- All Implemented Interfaces:
Serializable, Comparable<BigDecimal>
Represents the Amount data type described in section 7.1.5, "Data types", of the
Factur-X specification: a decimal with at most two digits after the decimal point.
- 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 AmountfromString(String value) Returns anAmountholding the value parsed from a decimal string; surrounding whitespace is ignored.static AmountvalueOf(double value) Returns anAmountholding the given value.static AmountvalueOf(int value) Returns anAmountholding the given value.static AmountReturns anAmountholding the value parsed from a decimal string; surrounding whitespace is ignored.static AmountvalueOf(BigDecimal value) Returns anAmountholding 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 anAmountholding the given value.- Parameters:
value- the value- Returns:
- an
Amountequal tovalue
-
valueOf
-
valueOf
Returns anAmountholding the given value.- Parameters:
value- the value- Returns:
- an
Amountequal tovalue
-
valueOf
Returns anAmountholding the given value.- Parameters:
value- the value- Returns:
- an
Amountequal tovalue
-