Interface PartitionMutableList<T>
- All Superinterfaces:
PartitionIterable<T>,PartitionList<T>,PartitionMutableCollection<T>,PartitionOrderedIterable<T>,PartitionReversibleIterable<T>
A PartitionMutableList is the result of splitting a mutable list into two mutable 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 TypeMethodDescription
-
Method Details
-
getSelected
MutableList<T> getSelected()- Specified by:
getSelectedin interfacePartitionIterable<T>- Specified by:
getSelectedin interfacePartitionList<T>- Specified by:
getSelectedin interfacePartitionMutableCollection<T>- Specified by:
getSelectedin interfacePartitionOrderedIterable<T>- Specified by:
getSelectedin interfacePartitionReversibleIterable<T>
-
getRejected
MutableList<T> getRejected()- Specified by:
getRejectedin interfacePartitionIterable<T>- Specified by:
getRejectedin interfacePartitionList<T>- Specified by:
getRejectedin interfacePartitionMutableCollection<T>- Specified by:
getRejectedin interfacePartitionOrderedIterable<T>- Specified by:
getRejectedin interfacePartitionReversibleIterable<T>
-
toImmutable
PartitionImmutableList<T> toImmutable()- Specified by:
toImmutablein interfacePartitionMutableCollection<T>
-