Interface PartitionList<T>
-
- All Superinterfaces:
PartitionIterable<T>,PartitionOrderedIterable<T>,PartitionReversibleIterable<T>
- All Known Subinterfaces:
PartitionImmutableList<T>,PartitionMutableList<T>
public interface PartitionList<T> extends PartitionReversibleIterable<T>
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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ListIterable<T>getRejected()ListIterable<T>getSelected()
-
-
-
Method Detail
-
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>
-
-