Interface PartitionImmutableCollection<T>
- All Superinterfaces:
PartitionIterable<T>
- All Known Subinterfaces:
PartitionImmutableBag<T>
,PartitionImmutableBagIterable<T>
,PartitionImmutableList<T>
,PartitionImmutableSet<T>
,PartitionImmutableSetIterable<T>
,PartitionImmutableSortedBag<T>
,PartitionImmutableSortedSet<T>
- All Known Implementing Classes:
PartitionImmutableBagImpl
,PartitionImmutableListImpl
,PartitionImmutableSetImpl
,PartitionImmutableSortedBagImpl
,PartitionImmutableSortedSetImpl
A PartitionImmutableCollection is the result of splitting an immutable collection into two immutable collections 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 TypeMethodDescription
-
Method Details
-
getSelected
ImmutableCollection<T> getSelected()- Specified by:
getSelected
in interfacePartitionIterable<T>
-
getRejected
ImmutableCollection<T> getRejected()- Specified by:
getRejected
in interfacePartitionIterable<T>
-