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:
getSelected
in interfacePartitionIterable<T>
- Specified by:
getSelected
in interfacePartitionMutableCollection<T>
- Specified by:
getSelected
in interfacePartitionMutableSetIterable<T>
- Specified by:
getSelected
in interfacePartitionSet<T>
- Specified by:
getSelected
in interfacePartitionUnsortedSet<T>
-
getRejected
MutableSet<T> getRejected()- Specified by:
getRejected
in interfacePartitionIterable<T>
- Specified by:
getRejected
in interfacePartitionMutableCollection<T>
- Specified by:
getRejected
in interfacePartitionMutableSetIterable<T>
- Specified by:
getRejected
in interfacePartitionSet<T>
- Specified by:
getRejected
in interfacePartitionUnsortedSet<T>
-
toImmutable
PartitionImmutableSet<T> toImmutable()- Specified by:
toImmutable
in interfacePartitionMutableCollection<T>
-