Interface PartitionBag<T>
- All Superinterfaces:
PartitionIterable<T>
- All Known Subinterfaces:
PartitionImmutableBag<T>
,PartitionImmutableBagIterable<T>
,PartitionImmutableSortedBag<T>
,PartitionMutableBag<T>
,PartitionMutableBagIterable<T>
,PartitionMutableSortedBag<T>
,PartitionSortedBag<T>
,PartitionUnsortedBag<T>
- All Known Implementing Classes:
PartitionHashBag
,PartitionImmutableBagImpl
,PartitionImmutableSortedBagImpl
,PartitionTreeBag
A PartitionBag is the result of splitting a bag into two 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
-
Method Details
-
getSelected
- Specified by:
getSelected
in interfacePartitionIterable<T>
-
getRejected
- Specified by:
getRejected
in interfacePartitionIterable<T>
-