Interface PartitionImmutableStack<T>
- All Superinterfaces:
PartitionIterable<T>,PartitionOrderedIterable<T>,PartitionStack<T>
A PartitionImmutableStack is the result of splitting an immutable stack into two immutable stacks 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
Modifier and TypeMethodDescription
-
Method Details
-
getSelected
ImmutableStack<T> getSelected()- Specified by:
getSelectedin interfacePartitionIterable<T>- Specified by:
getSelectedin interfacePartitionOrderedIterable<T>- Specified by:
getSelectedin interfacePartitionStack<T>
-
getRejected
ImmutableStack<T> getRejected()- Specified by:
getRejectedin interfacePartitionIterable<T>- Specified by:
getRejectedin interfacePartitionOrderedIterable<T>- Specified by:
getRejectedin interfacePartitionStack<T>
-