Interface PartitionImmutableSet<T>
- All Superinterfaces:
PartitionImmutableCollection<T>
,PartitionImmutableSetIterable<T>
,PartitionIterable<T>
,PartitionSet<T>
,PartitionUnsortedSet<T>
- All Known Implementing Classes:
PartitionImmutableSetImpl
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
Modifier and Type Method Description ImmutableSet<T>
getRejected()
ImmutableSet<T>
getSelected()
-
Method Details
-
getSelected
ImmutableSet<T> getSelected()- Specified by:
getSelected
in interfacePartitionImmutableCollection<T>
- Specified by:
getSelected
in interfacePartitionImmutableSetIterable<T>
- Specified by:
getSelected
in interfacePartitionIterable<T>
- Specified by:
getSelected
in interfacePartitionSet<T>
- Specified by:
getSelected
in interfacePartitionUnsortedSet<T>
-
getRejected
ImmutableSet<T> getRejected()- Specified by:
getRejected
in interfacePartitionImmutableCollection<T>
- Specified by:
getRejected
in interfacePartitionImmutableSetIterable<T>
- Specified by:
getRejected
in interfacePartitionIterable<T>
- Specified by:
getRejected
in interfacePartitionSet<T>
- Specified by:
getRejected
in interfacePartitionUnsortedSet<T>
-