Interface PartitionMutableBagIterable<T>
- All Superinterfaces:
PartitionBag<T>,PartitionIterable<T>,PartitionMutableCollection<T>
- All Known Subinterfaces:
PartitionMutableBag<T>,PartitionMutableSortedBag<T>
- All Known Implementing Classes:
PartitionHashBag,PartitionTreeBag
public interface PartitionMutableBagIterable<T> extends PartitionMutableCollection<T>, PartitionBag<T>
A PartitionMutableBagIterable is the result of splitting a mutable bag into two MutableBagIterables 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 Type Method Description MutableBagIterable<T>getRejected()MutableBagIterable<T>getSelected()PartitionImmutableBagIterable<T>toImmutable()
-
Method Details
-
getSelected
MutableBagIterable<T> getSelected()- Specified by:
getSelectedin interfacePartitionBag<T>- Specified by:
getSelectedin interfacePartitionIterable<T>- Specified by:
getSelectedin interfacePartitionMutableCollection<T>
-
getRejected
MutableBagIterable<T> getRejected()- Specified by:
getRejectedin interfacePartitionBag<T>- Specified by:
getRejectedin interfacePartitionIterable<T>- Specified by:
getRejectedin interfacePartitionMutableCollection<T>
-
toImmutable
PartitionImmutableBagIterable<T> toImmutable()- Specified by:
toImmutablein interfacePartitionMutableCollection<T>
-