Interface PartitionMutableStack<T>
- All Superinterfaces:
PartitionIterable<T>,PartitionOrderedIterable<T>,PartitionStack<T>
A PartitionMutableStack is the result of splitting a mutable stack into two mutable stacks 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 TypeMethodDescriptionvoidDeprecated.in 5.0
-
Method Details
-
getSelected
MutableStack<T> getSelected()- Specified by:
getSelectedin interfacePartitionIterable<T>- Specified by:
getSelectedin interfacePartitionOrderedIterable<T>- Specified by:
getSelectedin interfacePartitionStack<T>
-
getRejected
MutableStack<T> getRejected()- Specified by:
getRejectedin interfacePartitionIterable<T>- Specified by:
getRejectedin interfacePartitionOrderedIterable<T>- Specified by:
getRejectedin interfacePartitionStack<T>
-
toImmutable
PartitionImmutableStack<T> toImmutable() -
add
Deprecated.in 5.0
-