Interface PartitionImmutableCollection<T>
- All Superinterfaces:
PartitionIterable<T>
- All Known Subinterfaces:
PartitionImmutableBag<T>,PartitionImmutableBagIterable<T>,PartitionImmutableList<T>,PartitionImmutableSet<T>,PartitionImmutableSetIterable<T>,PartitionImmutableSortedBag<T>,PartitionImmutableSortedSet<T>
A PartitionImmutableCollection is the result of splitting an immutable collection into two immutable collections based
on a Predicate. The results that answer true for the Predicate will be returned from the getSelected() method and the
results that answer false for the predicate will be returned from the getRejected() method.
-
Method Summary
Modifier and TypeMethodDescription
-
Method Details
-
getSelected
ImmutableCollection<T> getSelected()- Specified by:
getSelectedin interfacePartitionIterable<T>
-
getRejected
ImmutableCollection<T> getRejected()- Specified by:
getRejectedin interfacePartitionIterable<T>
-