Interface PartitionImmutableList<T>
- All Superinterfaces:
PartitionImmutableCollection<T>,PartitionIterable<T>,PartitionList<T>,PartitionOrderedIterable<T>,PartitionReversibleIterable<T>
- All Known Implementing Classes:
PartitionImmutableListImpl
public interface PartitionImmutableList<T> extends PartitionImmutableCollection<T>, PartitionList<T>
A PartitionImmutableList is the result of splitting an immutable list into two immutable lists 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 ImmutableList<T>getRejected()ImmutableList<T>getSelected()
-
Method Details
-
getSelected
ImmutableList<T> getSelected()- Specified by:
getSelectedin interfacePartitionImmutableCollection<T>- Specified by:
getSelectedin interfacePartitionIterable<T>- Specified by:
getSelectedin interfacePartitionList<T>- Specified by:
getSelectedin interfacePartitionOrderedIterable<T>- Specified by:
getSelectedin interfacePartitionReversibleIterable<T>
-
getRejected
ImmutableList<T> getRejected()- Specified by:
getRejectedin interfacePartitionImmutableCollection<T>- Specified by:
getRejectedin interfacePartitionIterable<T>- Specified by:
getRejectedin interfacePartitionList<T>- Specified by:
getRejectedin interfacePartitionOrderedIterable<T>- Specified by:
getRejectedin interfacePartitionReversibleIterable<T>
-