Interface PartitionMutableBag<T>
- All Superinterfaces:
PartitionBag<T>,PartitionIterable<T>,PartitionMutableBagIterable<T>,PartitionMutableCollection<T>,PartitionUnsortedBag<T>
public interface PartitionMutableBag<T>
extends PartitionMutableBagIterable<T>, PartitionUnsortedBag<T>
A PartitionMutableBag is the result of splitting a mutable bag into two mutable bags 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
MutableBag<T> getSelected()- Specified by:
getSelectedin interfacePartitionBag<T>- Specified by:
getSelectedin interfacePartitionIterable<T>- Specified by:
getSelectedin interfacePartitionMutableBagIterable<T>- Specified by:
getSelectedin interfacePartitionMutableCollection<T>- Specified by:
getSelectedin interfacePartitionUnsortedBag<T>
-
getRejected
MutableBag<T> getRejected()- Specified by:
getRejectedin interfacePartitionBag<T>- Specified by:
getRejectedin interfacePartitionIterable<T>- Specified by:
getRejectedin interfacePartitionMutableBagIterable<T>- Specified by:
getRejectedin interfacePartitionMutableCollection<T>- Specified by:
getRejectedin interfacePartitionUnsortedBag<T>
-
toImmutable
PartitionImmutableBag<T> toImmutable()- Specified by:
toImmutablein interfacePartitionMutableBagIterable<T>- Specified by:
toImmutablein interfacePartitionMutableCollection<T>
-