- Type Parameters:
T
- Data type of elements toNested be combined
- All Superinterfaces:
- java.util.function.BiFunction<T,T,T>, BinaryFn<T>, java.util.function.BinaryOperator<T>, Fn2<T,T,T>
- All Known Subinterfaces:
- Monoid<T>, Reducer<T>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface
public interface Semigroup<T>
extends BinaryFn<T>, java.util.function.BinaryOperator<T>
An (associative) binary operation for combining values.
Implementations should obey associativity laws.