Interface PartitionImmutableStack<T>
- All Superinterfaces:
PartitionIterable<T>
,PartitionOrderedIterable<T>
,PartitionStack<T>
- All Known Implementing Classes:
PartitionImmutableStackImpl
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:
getSelected
in interfacePartitionIterable<T>
- Specified by:
getSelected
in interfacePartitionOrderedIterable<T>
- Specified by:
getSelected
in interfacePartitionStack<T>
-
getRejected
ImmutableStack<T> getRejected()- Specified by:
getRejected
in interfacePartitionIterable<T>
- Specified by:
getRejected
in interfacePartitionOrderedIterable<T>
- Specified by:
getRejected
in interfacePartitionStack<T>
-