public class AbstractAbelianGroup<E> extends java.lang.Object implements AbelianGroup<E>, java.io.Serializable
Constructor and Description |
---|
AbstractAbelianGroup(CommutativeAssociativeOperation<E> operation,
E identity,
UnaryOperation<E> inversion) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
int |
hashCode() |
E |
identity()
Has to return the element of the set, which represents the identity of the operation of the monoid.
|
UnaryOperation<E> |
inversion()
Has to return the inversion operation for elements.
|
CommutativeAssociativeOperation<E> |
operation()
Has to return the binary operation (M x M = M) for this Magma.
|
java.lang.String |
toString() |
public AbstractAbelianGroup(CommutativeAssociativeOperation<E> operation, E identity, UnaryOperation<E> inversion)
public CommutativeAssociativeOperation<E> operation()
GrouplikeStructure
operation
in interface CommutativeSemigroup<E>
operation
in interface GrouplikeStructure<E>
operation
in interface Semigroup<E>
public E identity()
Monoid
public UnaryOperation<E> inversion()
Group
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object