Interface BiStream.Partitioner<A,B>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A predicate used to partition a
BiStream into sub-groups of consecutive pairs.
Aside from that it operates on pairs, logically a "Partitioner" is unlike
com.google.common.base.Equivalence in that it doesn't need to be reflexive. For example, one
may use (v1, v2) -> v1 < v2 to partition ascending sub-sequences into groups, such that
[1, 2, 3] results in a single group while [3, 2, 1] will be 3 groups:
[[3], [2], [1]].
-
Method Summary
-
Method Details
-
belong
-