public class BigDecimalFieldProxy extends NumericFieldProxy<java.math.BigDecimal>
Constructor and Description |
---|
BigDecimalFieldProxy(java.lang.Object owner,
java.lang.reflect.Field field) |
BigDecimalFieldProxy(java.lang.Object owner,
java.lang.String fieldName) |
Modifier and Type | Method and Description |
---|---|
java.math.BigDecimal |
add(java.math.BigDecimal value)
Adds the given value to this field's value and returns the result.
|
java.math.BigDecimal |
divide(java.math.BigDecimal value)
Divides this field's value by the given value, stores the result
in the field and returns the result.
|
java.math.BigDecimal |
multiply(java.math.BigDecimal value)
Multiplies this field's value with the given value, stores the result
in the field and returns the result.
|
protected java.math.BigDecimal |
negate(java.math.BigDecimal value)
Returns the negated value of the given value.
|
protected java.math.BigDecimal |
one()
Returns the representation of 1 as type T.
|
changeToValue, dec, inc, subtract
public BigDecimalFieldProxy(java.lang.Object owner, java.lang.reflect.Field field)
public BigDecimalFieldProxy(java.lang.Object owner, java.lang.String fieldName)
public java.math.BigDecimal add(java.math.BigDecimal value)
NumericFieldProxy
add
in class NumericFieldProxy<java.math.BigDecimal>
public java.math.BigDecimal multiply(java.math.BigDecimal value)
NumericFieldProxy
multiply
in class NumericFieldProxy<java.math.BigDecimal>
public java.math.BigDecimal divide(java.math.BigDecimal value)
NumericFieldProxy
divide
in class NumericFieldProxy<java.math.BigDecimal>
protected java.math.BigDecimal one()
NumericFieldProxy
one
in class NumericFieldProxy<java.math.BigDecimal>
protected java.math.BigDecimal negate(java.math.BigDecimal value)
NumericFieldProxy
negate
in class NumericFieldProxy<java.math.BigDecimal>