| |
|
| java.lang.Object java.lang.Number org.kuali.core.util.KualiInteger
ROUND_BEHAVIOR | final public static int ROUND_BEHAVIOR(Code) | | |
SCALE | final public static int SCALE(Code) | | |
KualiInteger | public KualiInteger(String value)(Code) | | Constructor - only accepts a string representation of the value.
This is done to prevent unexpected inaccuracy by conversion to and from floating-point values.
Parameters: value - String containing numeric value throws: IllegalArgumentException - if the given String is null |
KualiInteger | public KualiInteger(long value)(Code) | | Initializes this instance to the given integer value with integer arithmetic.
|
KualiInteger | public KualiInteger(BigInteger value)(Code) | | Simple constructor, copies in the given BigInteger as the value for the instance.
Parameters: value - BigInteger to be used as basis for value throws: IllegalArgumentException - if the given BigDecimal is null |
KualiInteger | public KualiInteger(BigDecimal value)(Code) | | Simple constructor, copies in the given BigInteger as the value for the instance.
Parameters: value - BigInteger to be used as basis for value throws: IllegalArgumentException - if the given BigDecimal is null |
KualiInteger | public KualiInteger(KualiDecimal value, RoundingMode roundingMode)(Code) | | Simple constructor, rounds the given KualiDecimal according to the RoundingMode
Parameters: value - KualiDecmial to be used as basis for value Parameters: roundingMode - RoundingMode for converting to Integer throws: IllegalArgumentException - if the given KualiDecmial or RoundingMode is null |
add | public KualiInteger add(KualiInteger addend)(Code) | | Wraps BigDecimal's add method to accept and return KualiDecimal instances instead of BigDecimals, so that users of the class
don't have to typecast the return value.
Parameters: addend - result of adding the given addend to this value throws: IllegalArgumentException - if the given addend is null |
bigDecimalValue | public BigDecimal bigDecimalValue()(Code) | | the value of this instance as a BigDecimal. |
bigIntegerValue | public BigInteger bigIntegerValue()(Code) | | the value of this instance as a BigDecimal. |
compareTo | public int compareTo(Object o)(Code) | | Compares this KualiInteger with the specified Object. If the Object is a KualiInteger, this method behaves like
java.lang.Comparable#compareTo(java.lang.Object).
Otherwise, it throws a ClassCastException (as KualiIntegers are comparable only to other KualiIntegers).
See Also: java.lang.Comparable.compareTo(java.lang.Object) |
isGreaterEqual | public boolean isGreaterEqual(KualiInteger operand)(Code) | | Parameters: operand - true if this KualiDecimal is greater than or equal to the given KualiDecimal |
isGreaterThan | public boolean isGreaterThan(KualiInteger operand)(Code) | | Parameters: operand - true if this KualiDecimal is greater than the given KualiDecimal |
isLessEqual | public boolean isLessEqual(KualiInteger operand)(Code) | | Parameters: operand - true if this KualiDecimal is less than or equal to the given KualiDecimal |
isLessThan | public boolean isLessThan(KualiInteger operand)(Code) | | Parameters: operand - true if this KualiDecimal is less than the given KualiDecimal |
isNegative | public boolean isNegative()(Code) | | true if this KualiDecimal is less than zero |
isNonZero | public boolean isNonZero()(Code) | | true if this KualiDecimal is not equal to zero |
isPositive | public boolean isPositive()(Code) | | true if this KualiDecimal is greater than zero |
isZero | public boolean isZero()(Code) | | true if this KualiDecimal is equal to zero |
kualiDecimalValue | public KualiDecimal kualiDecimalValue()(Code) | | the value of this instance as a BigDecimal. |
multiply | public KualiInteger multiply(KualiInteger multiplier)(Code) | | Wraps BigDecimal's multiply method to accept and return KualiInteger instances instead of BigDecimals, so that users of the
class don't have to typecast the return value.
Parameters: multiplicand - result of multiplying this value by the given multiplier throws: IllegalArgumentException - if the given multiplier is null |
negated | public KualiInteger negated()(Code) | | a KualiInteger with the same scale and a negated value (iff the value is non-zero) |
subtract | public KualiInteger subtract(KualiInteger subtrahend)(Code) | | Wraps BigDecimal's subtract method to accept and return KualiDecimal instances instead of BigDecimals, so that users of the
class don't have to typecast the return value.
Parameters: subtrahend - result of the subtracting the given subtrahend from this value throws: IllegalArgumentException - if the given subtrahend is null |
|
|
|