Class UnitPriceAmount
java.lang.Object
java.lang.Number
java.math.BigDecimal
com.fourjs.report.facturx.UnitPriceAmount
- All Implemented Interfaces:
Serializable, Comparable<BigDecimal>
Represents the Unit Price Amount data type described in section 7.1.5, "Data types", of
the Factur-X specification: a decimal that, unlike an
Amount, is not limited to 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 UnitPriceAmountfromString(String value) Returns aUnitPriceAmountholding the value parsed from a decimal string; surrounding whitespace is ignored.static UnitPriceAmountvalueOf(double value) Returns aUnitPriceAmountholding the given value.static UnitPriceAmountvalueOf(int value) Returns aUnitPriceAmountholding the given value.static UnitPriceAmountReturns aUnitPriceAmountholding the value parsed from a decimal string; surrounding whitespace is ignored.static UnitPriceAmountvalueOf(BigDecimal value) Returns aUnitPriceAmountholding 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
Returns aUnitPriceAmountholding the value parsed from a decimal string; surrounding whitespace is ignored.- Parameters:
value- the decimal value in string form, for example"1000.3454"- Returns:
- a
UnitPriceAmountequal tovalue
-
valueOf
Returns aUnitPriceAmountholding the given value.- Parameters:
value- the value- Returns:
- a
UnitPriceAmountequal tovalue
-
valueOf
Returns aUnitPriceAmountholding the value parsed from a decimal string; surrounding whitespace is ignored.- Parameters:
value- the decimal value in string form, for example"1000.3454"- Returns:
- a
UnitPriceAmountequal tovalue
-
valueOf
Returns aUnitPriceAmountholding the given value.- Parameters:
value- the value- Returns:
- a
UnitPriceAmountequal tovalue
-
valueOf
Returns aUnitPriceAmountholding the given value.- Parameters:
value- the value- Returns:
- a
UnitPriceAmountequal tovalue
-