Interface Addition<T>

  • Type Parameters:
    T - Type of elements.
    All Known Subinterfaces:
    NativeOperators<T>

    public interface Addition<T>
    Addition.
    • Method Detail

      • add

        T add​(T a)
        Binary addition.
        Parameters:
        a - Element.
        Returns:
        this + a.
      • zero

        T zero()
        Identity element.
        Returns:
        the field element such that for all a, zero().add(a).equals(a) is true.
      • negate

        T negate()
        Additive inverse.
        Returns:
        -this.