Interface PartitionMutableList<T>
- All Superinterfaces:
PartitionIterable<T>
,PartitionList<T>
,PartitionMutableCollection<T>
,PartitionOrderedIterable<T>
,PartitionReversibleIterable<T>
- All Known Implementing Classes:
PartitionFastList
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
Modifier and Type Method Description MutableList<T>
getRejected()
MutableList<T>
getSelected()
PartitionImmutableList<T>
toImmutable()
-
Method Details
-
getSelected
MutableList<T> getSelected()- Specified by:
getSelected
in interfacePartitionIterable<T>
- Specified by:
getSelected
in interfacePartitionList<T>
- Specified by:
getSelected
in interfacePartitionMutableCollection<T>
- Specified by:
getSelected
in interfacePartitionOrderedIterable<T>
- Specified by:
getSelected
in interfacePartitionReversibleIterable<T>
-
getRejected
MutableList<T> getRejected()- Specified by:
getRejected
in interfacePartitionIterable<T>
- Specified by:
getRejected
in interfacePartitionList<T>
- Specified by:
getRejected
in interfacePartitionMutableCollection<T>
- Specified by:
getRejected
in interfacePartitionOrderedIterable<T>
- Specified by:
getRejected
in interfacePartitionReversibleIterable<T>
-
toImmutable
PartitionImmutableList<T> toImmutable()- Specified by:
toImmutable
in interfacePartitionMutableCollection<T>
-