Interface PartitionImmutableSetIterable<T>
- All Superinterfaces:
PartitionImmutableCollection<T>
,PartitionIterable<T>
,PartitionSet<T>
- All Known Subinterfaces:
PartitionImmutableSet<T>
,PartitionImmutableSortedSet<T>
- All Known Implementing Classes:
PartitionImmutableSetImpl
,PartitionImmutableSortedSetImpl
public interface PartitionImmutableSetIterable<T> extends PartitionSet<T>, PartitionImmutableCollection<T>
A PartitionImmutableSetIterable is the result of splitting a ImmutableSetIterable into two ImmutableSetIterables 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 ImmutableSetIterable<T>
getRejected()
ImmutableSetIterable<T>
getSelected()
-
Method Details
-
getSelected
ImmutableSetIterable<T> getSelected()- Specified by:
getSelected
in interfacePartitionImmutableCollection<T>
- Specified by:
getSelected
in interfacePartitionIterable<T>
- Specified by:
getSelected
in interfacePartitionSet<T>
-
getRejected
ImmutableSetIterable<T> getRejected()- Specified by:
getRejected
in interfacePartitionImmutableCollection<T>
- Specified by:
getRejected
in interfacePartitionIterable<T>
- Specified by:
getRejected
in interfacePartitionSet<T>
-