Interface PartitionIterable<T>
- All Known Subinterfaces:
PartitionBag<T>
,PartitionImmutableBag<T>
,PartitionImmutableBagIterable<T>
,PartitionImmutableCollection<T>
,PartitionImmutableList<T>
,PartitionImmutableSet<T>
,PartitionImmutableSetIterable<T>
,PartitionImmutableSortedBag<T>
,PartitionImmutableSortedSet<T>
,PartitionImmutableStack<T>
,PartitionList<T>
,PartitionMutableBag<T>
,PartitionMutableBagIterable<T>
,PartitionMutableCollection<T>
,PartitionMutableList<T>
,PartitionMutableSet<T>
,PartitionMutableSetIterable<T>
,PartitionMutableSortedBag<T>
,PartitionMutableSortedSet<T>
,PartitionMutableStack<T>
,PartitionOrderedIterable<T>
,PartitionReversibleIterable<T>
,PartitionSet<T>
,PartitionSortedBag<T>
,PartitionSortedIterable<T>
,PartitionSortedSet<T>
,PartitionStack<T>
,PartitionUnsortedBag<T>
,PartitionUnsortedSet<T>
- All Known Implementing Classes:
PartitionArrayStack
,PartitionFastList
,PartitionHashBag
,PartitionImmutableBagImpl
,PartitionImmutableListImpl
,PartitionImmutableSetImpl
,PartitionImmutableSortedBagImpl
,PartitionImmutableSortedSetImpl
,PartitionImmutableStackImpl
,PartitionTreeBag
,PartitionTreeSortedSet
,PartitionUnifiedSet
,PartitionUnifiedSetWithHashingStrategy
public interface PartitionIterable<T>
A PartitionIterable is the result of splitting an iterable into two iterables 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 RichIterable<T>
getRejected()
RichIterable<T>
getSelected()
-
Method Details
-
getSelected
RichIterable<T> getSelected() -
getRejected
RichIterable<T> getRejected()
-