Interface PartitionStack<T>
-
- All Superinterfaces:
PartitionIterable<T>,PartitionOrderedIterable<T>
- All Known Subinterfaces:
PartitionImmutableStack<T>,PartitionMutableStack<T>
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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StackIterable<T>getRejected()StackIterable<T>getSelected()
-
-
-
Method Detail
-
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>
-
-