Interface Addition<T>

Type Parameters:
T - Type of elements.
All Known Subinterfaces:
NativeOperators<T>
All Known Implementing Classes:
BigFraction, FP64, Fraction

public interface Addition<T>
Addition.
  • Method Summary

    Modifier and Type
    Method
    Description
    add(T a)
    Binary addition.
    Additive inverse.
    Identity element.
  • Method Details

    • 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.