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:
getSelected
in interfacePartitionIterable<T>
- Specified by:
getSelected
in interfacePartitionOrderedIterable<T>
- Specified by:
getSelected
in interfacePartitionReversibleIterable<T>
-
getRejected
ListIterable<T> getRejected()- Specified by:
getRejected
in interfacePartitionIterable<T>
- Specified by:
getRejected
in interfacePartitionOrderedIterable<T>
- Specified by:
getRejected
in interfacePartitionReversibleIterable<T>
-