Top Description Methods
org.apache.commons.math3

public Interface Field<T>

Known Direct Implementers
org.apache.commons.math3.complex.ComplexField, org.apache.commons.math3.dfp.DfpField, org.apache.commons.math3.fraction.BigFractionField, org.apache.commons.math3.fraction.FractionField, org.apache.commons.math3.util.BigRealField, org.apache.commons.math3.util.Decimal64Field
Type Parameters
<T>
the type of the field elements

Interface representing a field.

Classes implementing this interface will often be singletons.

Since
2.0
See Also
FieldElement

Method Summary

Modifier and TypeMethod and Description
public T

Returns:

multiplicative identity of the field
getOne
()

Get the multiplicative identity of the field.

public Class<? extends FieldElement<T>>

Returns:

The Class object that represents the runtime class of this object.
getRuntimeClass
()

Returns the runtime class of the FieldElement.

public T

Returns:

additive identity of the field
getZero
()

Get the additive identity of the field.

Method Detail

getOneback to summary
public T getOne()

Get the multiplicative identity of the field.

The multiplicative identity is the element e1 of the field such that for all elements a of the field, the equalities a × e1 = e1 × a = a hold.

Returns:T

multiplicative identity of the field

getRuntimeClassback to summary
public Class<? extends FieldElement<T>> getRuntimeClass()

Returns the runtime class of the FieldElement.

Returns:Class<? extends FieldElement<T>>

The Class object that represents the runtime class of this object.

getZeroback to summary
public T getZero()

Get the additive identity of the field.

The additive identity is the element e0 of the field such that for all elements a of the field, the equalities a + e0 = e0 + a = a hold.

Returns:T

additive identity of the field