Interface PartitionImmutableBagIterable<T>
- All Superinterfaces:
PartitionBag<T>
,PartitionImmutableCollection<T>
,PartitionIterable<T>
- All Known Subinterfaces:
PartitionImmutableBag<T>
,PartitionImmutableSortedBag<T>
- All Known Implementing Classes:
PartitionImmutableBagImpl
,PartitionImmutableSortedBagImpl
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
Modifier and Type Method Description ImmutableBagIterable<T>
getRejected()
ImmutableBagIterable<T>
getSelected()
-
Method Details
-
getSelected
ImmutableBagIterable<T> getSelected()- Specified by:
getSelected
in interfacePartitionBag<T>
- Specified by:
getSelected
in interfacePartitionImmutableCollection<T>
- Specified by:
getSelected
in interfacePartitionIterable<T>
-
getRejected
ImmutableBagIterable<T> getRejected()- Specified by:
getRejected
in interfacePartitionBag<T>
- Specified by:
getRejected
in interfacePartitionImmutableCollection<T>
- Specified by:
getRejected
in interfacePartitionIterable<T>
-