public class AmountResolver extends Object
Constructor and Description |
---|
AmountResolver() |
Modifier and Type | Method and Description |
---|---|
static BigDecimal |
amount(Field f)
get the amount of the given field by reading it's components pattern.
|
static List<BigDecimal> |
amounts(Field f,
int... component) |
public static List<BigDecimal> amounts(Field f, int... component)
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)