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:
getSelected
in interfacePartitionBag<T>
- Specified by:
getSelected
in interfacePartitionIterable<T>
- Specified by:
getSelected
in interfacePartitionMutableCollection<T>
-
getRejected
MutableBagIterable<T> getRejected()- Specified by:
getRejected
in interfacePartitionBag<T>
- Specified by:
getRejected
in interfacePartitionIterable<T>
- Specified by:
getRejected
in interfacePartitionMutableCollection<T>
-
toImmutable
PartitionImmutableBagIterable<T> toImmutable()- Specified by:
toImmutable
in interfacePartitionMutableCollection<T>
-