Interface PartitionMutableCollection<T>
- All Superinterfaces:
PartitionIterable<T>
- All Known Subinterfaces:
PartitionMutableBag<T>
,PartitionMutableBagIterable<T>
,PartitionMutableList<T>
,PartitionMutableSet<T>
,PartitionMutableSetIterable<T>
,PartitionMutableSortedBag<T>
,PartitionMutableSortedSet<T>
- All Known Implementing Classes:
PartitionFastList
,PartitionHashBag
,PartitionTreeBag
,PartitionTreeSortedSet
,PartitionUnifiedSet
,PartitionUnifiedSetWithHashingStrategy
public interface PartitionMutableCollection<T> extends PartitionIterable<T>
A PartitionMutableCollection is the result of splitting a mutable collection into two mutable collections 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 MutableCollection<T>
getRejected()
MutableCollection<T>
getSelected()
PartitionImmutableCollection<T>
toImmutable()
-
Method Details
-
getSelected
MutableCollection<T> getSelected()- Specified by:
getSelected
in interfacePartitionIterable<T>
-
getRejected
MutableCollection<T> getRejected()- Specified by:
getRejected
in interfacePartitionIterable<T>
-
toImmutable
PartitionImmutableCollection<T> toImmutable()
-