T
- Data type of elements to be combined@FunctionalInterface
public interface Semigroup<T>
extends java.util.function.BinaryOperator<T>
Modifier and Type | Method and Description |
---|---|
T |
apply(T t,
T u) |
default java.util.function.BiFunction<T,T,T> |
combiner()
Deprecated.
|
default java.util.function.BinaryOperator<T> |
reducer()
Deprecated.
|