T
- the type of the elements of the set on which the monoid is basedpublic interface Monoid<T> extends Semigroup<T>
Modifier and Type | Method and Description |
---|---|
T |
identity()
Has to return the element of the set, which represents the identity of the operation of the monoid.
|
T identity()