public class AmountResolver
extends java.lang.Object
| Constructor and Description |
|---|
AmountResolver() |
| Modifier and Type | Method and Description |
|---|---|
static java.math.BigDecimal |
amount(Field f)
Gets the amount of the given field by reading it's components pattern.
|
static java.util.List<java.math.BigDecimal> |
amounts(Field f)
Gets the amounts of the given field by reading it's components pattern.
|
static java.util.List<java.math.BigDecimal> |
amounts(Field f,
int... component)
Deprecated.
use
amounts(Field) instead |
@Deprecated @ProwideDeprecated(phase3=_2018) public static java.util.List<java.math.BigDecimal> amounts(Field f, int... component)
amounts(Field) insteadpublic static java.util.List<java.math.BigDecimal> amounts(Field f)
f - the field where to extract the amounts, must not be nullField.getComponentAs(int, Class)public static java.math.BigDecimal amount(Field f)
f - the field where to extract the amount, must not be nullnull if there is
no numeric component in the field. It may also return null if Field.getComponent(index,Number.class) fails
for that componentField.getComponentAs(int, Class)