Interface PartitionMutableSet<T>
- All Superinterfaces:
PartitionIterable<T>,PartitionMutableCollection<T>,PartitionMutableSetIterable<T>,PartitionSet<T>,PartitionUnsortedSet<T>
- All Known Implementing Classes:
PartitionUnifiedSet,PartitionUnifiedSetWithHashingStrategy
public interface PartitionMutableSet<T> extends PartitionUnsortedSet<T>, PartitionMutableSetIterable<T>
A PartitionMutableSet is the result of splitting a mutable set into two mutable sets 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 MutableSet<T>getRejected()MutableSet<T>getSelected()PartitionImmutableSet<T>toImmutable()
-
Method Details
-
getSelected
MutableSet<T> getSelected()- Specified by:
getSelectedin interfacePartitionIterable<T>- Specified by:
getSelectedin interfacePartitionMutableCollection<T>- Specified by:
getSelectedin interfacePartitionMutableSetIterable<T>- Specified by:
getSelectedin interfacePartitionSet<T>- Specified by:
getSelectedin interfacePartitionUnsortedSet<T>
-
getRejected
MutableSet<T> getRejected()- Specified by:
getRejectedin interfacePartitionIterable<T>- Specified by:
getRejectedin interfacePartitionMutableCollection<T>- Specified by:
getRejectedin interfacePartitionMutableSetIterable<T>- Specified by:
getRejectedin interfacePartitionSet<T>- Specified by:
getRejectedin interfacePartitionUnsortedSet<T>
-
toImmutable
PartitionImmutableSet<T> toImmutable()- Specified by:
toImmutablein interfacePartitionMutableCollection<T>
-