Class CMField<C extends edu.jas.structure.RingElem<C>>

  • Type Parameters:
    C - JAS ring element type
    All Implemented Interfaces:
    org.apache.commons.math3.Field<CMFieldElement<C>>

    public class CMField<C extends edu.jas.structure.RingElem<C>>
    extends java.lang.Object
    implements org.apache.commons.math3.Field<CMFieldElement<C>>
    Class that wraps a JAS RingFactory in a commons-math Field.
    Author:
    Heinz Kredel
    • Field Detail

      • fac

        public final edu.jas.structure.RingFactory<C extends edu.jas.structure.RingElem<C>> fac
    • Constructor Detail

      • CMField

        public CMField​(edu.jas.structure.ElemFactory<C> f)
        Parameters:
        f -
      • CMField

        public CMField​(edu.jas.structure.RingFactory<C> f)
        Parameters:
        f -
    • Method Detail

      • getRuntimeClass

        public java.lang.Class<CMFieldElement<C>> getRuntimeClass()
        get runtime class
        Specified by:
        getRuntimeClass in interface org.apache.commons.math3.Field<C extends edu.jas.structure.RingElem<C>>
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
        See Also:
        Object.equals(java.lang.Object)
      • getOne

        public CMFieldElement<CgetOne()
        Specified by:
        getOne in interface org.apache.commons.math3.Field<C extends edu.jas.structure.RingElem<C>>
      • getZero

        public CMFieldElement<CgetZero()
        Specified by:
        getZero in interface org.apache.commons.math3.Field<C extends edu.jas.structure.RingElem<C>>
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
        See Also:
        Object.hashCode()
      • toString

        public java.lang.String toString()
        Get the string representation.
        Overrides:
        toString in class java.lang.Object
        See Also:
        Object.toString()