Package org.apache.commons.numbers.field
Class FractionField
- java.lang.Object
-
- org.apache.commons.numbers.field.AbstractField<org.apache.commons.numbers.fraction.Fraction>
-
- org.apache.commons.numbers.field.FractionField
-
- All Implemented Interfaces:
Field<org.apache.commons.numbers.fraction.Fraction>
public final class FractionField extends AbstractField<org.apache.commons.numbers.fraction.Fraction>
Fractionfield.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static FractionFieldget()Get the field instance.org.apache.commons.numbers.fraction.Fractionone()Return the value of one.org.apache.commons.numbers.fraction.Fractionzero()Return the value of zero.-
Methods inherited from class org.apache.commons.numbers.field.AbstractField
add, divide, multiply, multiply, negate, reciprocal, subtract
-
-
-
-
Method Detail
-
get
public static FractionField get()
Get the field instance.- Returns:
- the field instance.
-
one
public org.apache.commons.numbers.fraction.Fraction one()
Return the value of one.- Returns:
- the field element
1such that for alla,1 * a == a.
-
zero
public org.apache.commons.numbers.fraction.Fraction zero()
Return the value of zero.- Returns:
- the field element
0such that for alla,0 + a == a.
-
-