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:
getSelected
in interfacePartitionBag<T>
- Specified by:
getSelected
in interfacePartitionImmutableBagIterable<T>
- Specified by:
getSelected
in interfacePartitionImmutableCollection<T>
- Specified by:
getSelected
in interfacePartitionIterable<T>
- Specified by:
getSelected
in interfacePartitionUnsortedBag<T>
-
getRejected
ImmutableBag<T> getRejected()- Specified by:
getRejected
in interfacePartitionBag<T>
- Specified by:
getRejected
in interfacePartitionImmutableBagIterable<T>
- Specified by:
getRejected
in interfacePartitionImmutableCollection<T>
- Specified by:
getRejected
in interfacePartitionIterable<T>
- Specified by:
getRejected
in interfacePartitionUnsortedBag<T>
-