Interface Monoid<T>
-
- Type Parameters:
T
- the type of the elements of the set on which the monoid is based
- All Superinterfaces:
GrouplikeStructure<T>
,Magma<T>
,Semigroup<T>
,Structure<T>
- All Known Subinterfaces:
AbelianGroup<T>
,CommutativeMonoid<T>
,Group<T>
- All Known Implementing Classes:
AbstractAbelianGroup
public interface Monoid<T> extends Semigroup<T>
Represents the algebraic structure of a Monoid, which extends a semigroup by having an identity element.- See Also:
- http://en.wikipedia.org/wiki/Monoid
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description T
identity()
Has to return the element of the set, which represents the identity of the operation of the monoid.
-
-
-
Method Detail
-
identity
T identity()
Has to return the element of the set, which represents the identity of the operation of the monoid.- Returns:
- the identity element of the monoid.
-
-