Package com.fourjs.report.facturx
Class Quantity
- java.lang.Object
-
- java.lang.Number
-
- java.math.BigDecimal
-
- com.fourjs.report.facturx.Quantity
-
- All Implemented Interfaces:
Serializable
,Comparable<BigDecimal>
public class Quantity extends BigDecimal
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class java.math.BigDecimal
ONE, ROUND_CEILING, ROUND_DOWN, ROUND_FLOOR, ROUND_HALF_DOWN, ROUND_HALF_EVEN, ROUND_HALF_UP, ROUND_UNNECESSARY, ROUND_UP, TEN, ZERO
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Quantity
fromString(String value)
BigDecimal
getDisplayValue()
String
toString()
static Quantity
valueOf(double value)
static Quantity
valueOf(int value)
static Quantity
valueOf(String value)
static Quantity
valueOf(BigDecimal value)
-
Methods inherited from class java.math.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, valueOf
-
Methods inherited from class java.lang.Number
byteValue, shortValue
-
-
-
-
Method Detail
-
valueOf
public static Quantity valueOf(BigDecimal value)
-
valueOf
public static Quantity valueOf(double value)
-
valueOf
public static Quantity valueOf(int value)
-
getDisplayValue
public BigDecimal getDisplayValue()
-
toString
public String toString()
- Overrides:
toString
in classBigDecimal
-
-