Interface PartitionStack<T>
- All Superinterfaces:
PartitionIterable<T>,PartitionOrderedIterable<T>
- All Known Subinterfaces:
PartitionImmutableStack<T>,PartitionMutableStack<T>
A PartitionStack is the result of splitting a StackIterable into two StackIterables 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
StackIterable<T> getSelected()- Specified by:
getSelectedin interfacePartitionIterable<T>- Specified by:
getSelectedin interfacePartitionOrderedIterable<T>
-
getRejected
StackIterable<T> getRejected()- Specified by:
getRejectedin interfacePartitionIterable<T>- Specified by:
getRejectedin interfacePartitionOrderedIterable<T>
-