Interface FieldElement<T>

    • Method Detail

      • add

        T add​(T a)
        Compute this + a.
        Parameters:
        a - element to add
        Returns:
        a new element representing this + a
      • subtract

        T subtract​(T a)
        Compute this - a.
        Parameters:
        a - element to subtract
        Returns:
        a new element representing this - a
      • multiply

        T multiply​(T a)
        Compute this × a.
        Parameters:
        a - element to multiply
        Returns:
        a new element representing this × a
      • divide

        T divide​(T a)
          throws java.lang.ArithmeticException
        Compute this ÷ a.
        Parameters:
        a - element to add
        Returns:
        a new element representing this ÷ a
        Throws:
        java.lang.ArithmeticException - if a is the zero of the additive operation (i.e. additive identity)
      • getField

        Field<T> getField()
        Get the Field to which the instance belongs.
        Returns:
        Field to which the instance belongs