public class AmountResolver extends Object
Constructor and Description |
---|
AmountResolver() |
Modifier and Type | Method and Description |
---|---|
static BigDecimal |
amount(Field f)
Gets the amount of the given field by reading it's components pattern.
|
static List<BigDecimal> |
amounts(Field f)
Gets the amounts of the given field by reading it's components pattern.
|
static List<BigDecimal> |
amounts(Field f,
int... component)
Deprecated.
use
amounts(Field) instead |
@Deprecated @ProwideDeprecated(phase3=_2018) public static List<BigDecimal> amounts(Field f, int... component)
amounts(Field)
insteadpublic static List<BigDecimal> amounts(Field f)
f
- the field where to extract the amounts, must not be nullField.getComponentAs(int, Class)
public static 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)