Interface PartitionImmutableBag<T>
- All Superinterfaces:
PartitionBag<T>,PartitionImmutableBagIterable<T>,PartitionImmutableCollection<T>,PartitionIterable<T>,PartitionUnsortedBag<T>
- All Known Implementing Classes:
PartitionImmutableBagImpl
public interface PartitionImmutableBag<T>
extends PartitionImmutableBagIterable<T>, PartitionUnsortedBag<T>
A PartitionImmutableBag is the result of splitting an immutable bag into two immutable 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
ImmutableBag<T> getSelected()- Specified by:
getSelectedin interfacePartitionBag<T>- Specified by:
getSelectedin interfacePartitionImmutableBagIterable<T>- Specified by:
getSelectedin interfacePartitionImmutableCollection<T>- Specified by:
getSelectedin interfacePartitionIterable<T>- Specified by:
getSelectedin interfacePartitionUnsortedBag<T>
-
getRejected
ImmutableBag<T> getRejected()- Specified by:
getRejectedin interfacePartitionBag<T>- Specified by:
getRejectedin interfacePartitionImmutableBagIterable<T>- Specified by:
getRejectedin interfacePartitionImmutableCollection<T>- Specified by:
getRejectedin interfacePartitionIterable<T>- Specified by:
getRejectedin interfacePartitionUnsortedBag<T>
-