Interface PartitionList<T>
- All Superinterfaces:
PartitionIterable<T>,PartitionOrderedIterable<T>,PartitionReversibleIterable<T>
- All Known Subinterfaces:
PartitionImmutableList<T>,PartitionMutableList<T>
- All Known Implementing Classes:
PartitionFastList,PartitionImmutableListImpl
A PartitionList is the result of splitting a ListIterable into two ListIterables 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
ListIterable<T> getSelected()- Specified by:
getSelectedin interfacePartitionIterable<T>- Specified by:
getSelectedin interfacePartitionOrderedIterable<T>- Specified by:
getSelectedin interfacePartitionReversibleIterable<T>
-
getRejected
ListIterable<T> getRejected()- Specified by:
getRejectedin interfacePartitionIterable<T>- Specified by:
getRejectedin interfacePartitionOrderedIterable<T>- Specified by:
getRejectedin interfacePartitionReversibleIterable<T>
-