Interface PartitionImmutableBagIterable<T>
-
- All Superinterfaces:
PartitionBag<T>,PartitionImmutableCollection<T>,PartitionIterable<T>
- All Known Subinterfaces:
PartitionImmutableBag<T>,PartitionImmutableSortedBag<T>
public interface PartitionImmutableBagIterable<T> extends PartitionImmutableCollection<T>, PartitionBag<T>
A PartitionImmutableBagIterable is the result of splitting a mutable bag into two ImmutableBagIterables 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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ImmutableBagIterable<T>getRejected()ImmutableBagIterable<T>getSelected()
-
-
-
Method Detail
-
getSelected
ImmutableBagIterable<T> getSelected()
- Specified by:
getSelectedin interfacePartitionBag<T>- Specified by:
getSelectedin interfacePartitionImmutableCollection<T>- Specified by:
getSelectedin interfacePartitionIterable<T>
-
getRejected
ImmutableBagIterable<T> getRejected()
- Specified by:
getRejectedin interfacePartitionBag<T>- Specified by:
getRejectedin interfacePartitionImmutableCollection<T>- Specified by:
getRejectedin interfacePartitionIterable<T>
-
-