T - the type of the field elementspublic interface FieldElement<T>
Field| Modifier and Type | Method and Description | 
|---|---|
| T | add(T a)Compute this + a. | 
| T | divide(T a)Compute this ÷ a. | 
| Field<T> | getField()Get the  Fieldto which the instance belongs. | 
| T | multiply(int n)Compute n × this. | 
| T | multiply(T a)Compute this × a. | 
| T | negate()Returns the additive inverse of  thiselement. | 
| T | reciprocal()Returns the multiplicative inverse of  thiselement. | 
| T | subtract(T a)Compute this - a. | 
T add(T a) throws NullArgumentException
a - element to addNullArgumentException - if a is null.T subtract(T a) throws NullArgumentException
a - element to subtractNullArgumentException - if a is null.T negate()
this element.this.T multiply(int n)
n - Number of times this must be added to itself.T multiply(T a) throws NullArgumentException
a - element to multiplyNullArgumentException - if a is null.T divide(T a) throws NullArgumentException, MathArithmeticException
a - element to divide byNullArgumentException - if a is null.MathArithmeticException - if a is zeroT reciprocal() throws MathArithmeticException
this element.this.MathArithmeticException - if this is zeroCopyright © 2003–2016 The Apache Software Foundation. All rights reserved.