Class AbstractAbelianGroup<E>

    • Method Detail

      • identity

        public E identity()
        Description copied from interface: Monoid
        Has to return the element of the set, which represents the identity of the operation of the monoid.
        Specified by:
        identity in interface Monoid<E>
        Returns:
        the identity element of the monoid.
      • inversion

        public UnaryOperation<E> inversion()
        Description copied from interface: Group
        Has to return the inversion operation for elements.
        Specified by:
        inversion in interface Group<E>
        Returns:
        the inversion operation
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

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

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object