Interface PartitionStack<T>
- All Superinterfaces:
PartitionIterable<T>
,PartitionOrderedIterable<T>
- All Known Subinterfaces:
PartitionImmutableStack<T>
,PartitionMutableStack<T>
- All Known Implementing Classes:
PartitionArrayStack
,PartitionImmutableStackImpl
public interface PartitionStack<T> extends PartitionOrderedIterable<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
Modifier and Type Method Description StackIterable<T>
getRejected()
StackIterable<T>
getSelected()
-
Method Details
-
getSelected
StackIterable<T> getSelected()- Specified by:
getSelected
in interfacePartitionIterable<T>
- Specified by:
getSelected
in interfacePartitionOrderedIterable<T>
-
getRejected
StackIterable<T> getRejected()- Specified by:
getRejected
in interfacePartitionIterable<T>
- Specified by:
getRejected
in interfacePartitionOrderedIterable<T>
-