Interface PartitionMutableCollection<T>
- All Superinterfaces:
PartitionIterable<T>
- All Known Subinterfaces:
PartitionMutableBag<T>,PartitionMutableBagIterable<T>,PartitionMutableList<T>,PartitionMutableSet<T>,PartitionMutableSetIterable<T>,PartitionMutableSortedBag<T>,PartitionMutableSortedSet<T>
A PartitionMutableCollection is the result of splitting a mutable collection into two mutable 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
MutableCollection<T> getSelected()- Specified by:
getSelectedin interfacePartitionIterable<T>
-
getRejected
MutableCollection<T> getRejected()- Specified by:
getRejectedin interfacePartitionIterable<T>
-
toImmutable
PartitionImmutableCollection<T> toImmutable()
-