Interface FieldElement<T>
- Type Parameters:
T- the type of the field elements
- All Known Implementing Classes:
Fraction
public interface FieldElement<T>
Interface representing field elements.
- Since:
- 2.0
- Version:
- $Revision: 811685 $ $Date: 2009-09-05 13:36:48 -0400 (Sat, 05 Sep 2009) $
- See Also:
-
Method Summary
-
Method Details
-
add
Compute this + a.- Parameters:
a- element to add- Returns:
- a new element representing this + a
-
subtract
Compute this - a.- Parameters:
a- element to subtract- Returns:
- a new element representing this - a
-
multiply
Compute this × a.- Parameters:
a- element to multiply- Returns:
- a new element representing this × a
-
divide
Compute this ÷ a.- Parameters:
a- element to add- Returns:
- a new element representing this ÷ a
- Throws:
ArithmeticException- if a is the zero of the additive operation (i.e. additive identity)
-
getField
Get theFieldto which the instance belongs.- Returns:
Fieldto which the instance belongs
-