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