Interface PartitionImmutableSet<T>
- All Superinterfaces:
PartitionImmutableCollection<T>,PartitionImmutableSetIterable<T>,PartitionIterable<T>,PartitionSet<T>,PartitionUnsortedSet<T>
public interface PartitionImmutableSet<T>
extends PartitionUnsortedSet<T>, PartitionImmutableSetIterable<T>
A PartitionImmutableSet is the result of splitting an immutable set into two immutable 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
-
Method Details
-
getSelected
ImmutableSet<T> getSelected()- Specified by:
getSelectedin interfacePartitionImmutableCollection<T>- Specified by:
getSelectedin interfacePartitionImmutableSetIterable<T>- Specified by:
getSelectedin interfacePartitionIterable<T>- Specified by:
getSelectedin interfacePartitionSet<T>- Specified by:
getSelectedin interfacePartitionUnsortedSet<T>
-
getRejected
ImmutableSet<T> getRejected()- Specified by:
getRejectedin interfacePartitionImmutableCollection<T>- Specified by:
getRejectedin interfacePartitionImmutableSetIterable<T>- Specified by:
getRejectedin interfacePartitionIterable<T>- Specified by:
getRejectedin interfacePartitionSet<T>- Specified by:
getRejectedin interfacePartitionUnsortedSet<T>
-