Class AbstractAbelianGroup<E>
- java.lang.Object
-
- org.tensorics.core.math.structures.grouplike.AbstractAbelianGroup<E>
-
- All Implemented Interfaces:
java.io.Serializable
,AbelianGroup<E>
,CommutativeMonoid<E>
,CommutativeSemigroup<E>
,Group<E>
,GrouplikeStructure<E>
,Magma<E>
,Monoid<E>
,Semigroup<E>
,Structure<E>
public class AbstractAbelianGroup<E> extends java.lang.Object implements AbelianGroup<E>, java.io.Serializable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AbstractAbelianGroup(CommutativeAssociativeOperation<E> operation, E identity, UnaryOperation<E> inversion)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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()
-
-
-
Constructor Detail
-
AbstractAbelianGroup
public AbstractAbelianGroup(CommutativeAssociativeOperation<E> operation, E identity, UnaryOperation<E> inversion)
-
-
Method Detail
-
operation
public CommutativeAssociativeOperation<E> operation()
Description copied from interface:GrouplikeStructure
Has to return the binary operation (M x M = M) for this Magma.- Specified by:
operation
in interfaceCommutativeSemigroup<E>
- Specified by:
operation
in interfaceGrouplikeStructure<E>
- Specified by:
operation
in interfaceSemigroup<E>
- Returns:
- the binary operation.
-
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.
-
inversion
public UnaryOperation<E> inversion()
Description copied from interface:Group
Has to return the inversion operation for elements.
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-