Interface AdditionMonoid<T extends AdditionMonoid<T>>

Type Parameters:
T - the type of element in the Monoid
All Known Subinterfaces:
AdditionGroup<T>, Field<T>, Int, Rational
All Known Implementing Classes:
Angle

public interface AdditionMonoid<T extends AdditionMonoid<T>>
Defines the contract for Addition Monoid.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Checks whether is Zero.
    plus(T other)
     
  • Method Details

    • isZero

      boolean isZero()
      Checks whether is Zero.
      Returns:
      the result of isZero
    • plus

      T plus(T other)