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