Interface PartitionReversibleIterable<T>
- All Superinterfaces:
PartitionIterable<T>,PartitionOrderedIterable<T>
- All Known Subinterfaces:
PartitionImmutableList<T>,PartitionImmutableSortedBag<T>,PartitionImmutableSortedSet<T>,PartitionList<T>,PartitionMutableList<T>,PartitionMutableSortedBag<T>,PartitionMutableSortedSet<T>,PartitionSortedBag<T>,PartitionSortedSet<T>
- All Known Implementing Classes:
PartitionFastList,PartitionImmutableListImpl,PartitionImmutableSortedBagImpl,PartitionImmutableSortedSetImpl,PartitionTreeBag,PartitionTreeSortedSet
public interface PartitionReversibleIterable<T> extends PartitionOrderedIterable<T>
A PartitionReversibleIterable is the result of splitting a ReversibleIterable into two ReversibleIterables 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.
- Since:
- 5.0
-
Method Summary
Modifier and Type Method Description ReversibleIterable<T>getRejected()ReversibleIterable<T>getSelected()
-
Method Details
-
getSelected
ReversibleIterable<T> getSelected()- Specified by:
getSelectedin interfacePartitionIterable<T>- Specified by:
getSelectedin interfacePartitionOrderedIterable<T>
-
getRejected
ReversibleIterable<T> getRejected()- Specified by:
getRejectedin interfacePartitionIterable<T>- Specified by:
getRejectedin interfacePartitionOrderedIterable<T>
-