|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
T - the type of the field elementspublic interface FieldElement<T>
Interface representing field elements.
Field| Method Summary | |
|---|---|
T |
add(T a)
Compute this + a. |
T |
divide(T a)
Compute this ÷ a. |
Field<T> |
getField()
Get the Field to 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 this element. |
T |
reciprocal()
Returns the multiplicative inverse of this element. |
T |
subtract(T a)
Compute this - a. |
| Method Detail |
|---|
T add(T a)
throws NullArgumentException
a - element to add
NullArgumentException - if addend is null.
T subtract(T a)
throws NullArgumentException
a - element to subtract
NullArgumentException - 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 multiply
NullArgumentException - if a is null.
T divide(T a)
throws NullArgumentException,
MathArithmeticException
a - element to add
NullArgumentException - if a is null.
MathArithmeticException - if a is zero
T reciprocal()
throws MathArithmeticException
this element.
this.
MathArithmeticException - if this is zeroField<T> getField()
Field to which the instance belongs.
Field to which the instance belongs
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||