Interface PartitionMutableList<T>
-
- All Superinterfaces:
PartitionIterable<T>,PartitionList<T>,PartitionMutableCollection<T>,PartitionOrderedIterable<T>,PartitionReversibleIterable<T>
public interface PartitionMutableList<T> extends PartitionMutableCollection<T>, PartitionList<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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description MutableList<T>getRejected()MutableList<T>getSelected()PartitionImmutableList<T>toImmutable()
-
-
-
Method Detail
-
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>
-
-