| Package | Description |
|---|---|
| io.starter.toolkit |
| Modifier and Type | Method and Description |
|---|---|
Money |
Money.abs()
Returns the absolute monetary value.
|
Money |
Money.add(Money money)
Adds a specified monetary value to this monetary value.
|
Money |
Money.divide(double div)
Divides this monetary value by a specified value.
|
Money |
Money.divide(long div)
Divides this monetary value by a specified value.
|
Money |
Money.multiply(double mult)
Multiplies this monetary value by a specified value.
|
Money |
Money.multiply(long mult)
Multiplies this monetary value by a specified value.
|
Money |
Money.negate()
Negates this monetary value.
|
Money |
Money.parse(String string)
Parses a string representation of a monetary value, returning
a new Money
object with the specified value.
|
Money |
Money.setCurrencyFormat(DecimalFormat format)
Sets the Currency Format, used for formatting and parsing
monetary values.
|
Money |
Money.setRoundingMode(int mode)
Sets the Rounding Mode.
|
Money |
Money.subtract(Money money)
Subtracts a specified monetary value from this monetary value.
|
| Modifier and Type | Method and Description |
|---|---|
Money |
Money.add(Money money)
Adds a specified monetary value to this monetary value.
|
boolean |
Money.isEqual(Money other)
Returns an indication of whether or not this monetary value
is equal to
another monetary value.
|
boolean |
Money.isGreaterThan(Money other)
Returns an indication of whether or not this monetary value
is greater than
another monetary value.
|
boolean |
Money.isGreaterThanOrEqual(Money other)
Returns an indication of whether or not this monetary value
is greater than
or equal to another monetary value.
|
boolean |
Money.isLessThan(Money other)
Returns an indication of whether or not this monetary value
is less than
another monetary value.
|
boolean |
Money.isLessThanOrEqual(Money other)
Returns an indication of whether or not this monetary value
is less than
or equal to another monetary value.
|
Money |
Money.subtract(Money money)
Subtracts a specified monetary value from this monetary value.
|
| Constructor and Description |
|---|
Money(Money amount)
Copy Constructor; constructs a Money object from another
Money object.
|
Copyright © 2002–2019 Starter Inc.. All rights reserved.