Interface PartitionImmutableSortedBag<T>
-
- All Superinterfaces:
PartitionBag<T>,PartitionImmutableBagIterable<T>,PartitionImmutableCollection<T>,PartitionIterable<T>,PartitionOrderedIterable<T>,PartitionReversibleIterable<T>,PartitionSortedBag<T>,PartitionSortedIterable<T>
public interface PartitionImmutableSortedBag<T> extends PartitionSortedBag<T>, PartitionImmutableBagIterable<T>
A PartitionImmutableSortedBag is the result of splitting an immutable sorted bag into two immutable sorted bags 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.- Since:
- 4.2
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ImmutableSortedBag<T>getRejected()ImmutableSortedBag<T>getSelected()
-
-
-
Method Detail
-
getSelected
ImmutableSortedBag<T> getSelected()
- Specified by:
getSelectedin interfacePartitionBag<T>- Specified by:
getSelectedin interfacePartitionImmutableBagIterable<T>- Specified by:
getSelectedin interfacePartitionImmutableCollection<T>- Specified by:
getSelectedin interfacePartitionIterable<T>- Specified by:
getSelectedin interfacePartitionOrderedIterable<T>- Specified by:
getSelectedin interfacePartitionReversibleIterable<T>- Specified by:
getSelectedin interfacePartitionSortedBag<T>- Specified by:
getSelectedin interfacePartitionSortedIterable<T>
-
getRejected
ImmutableSortedBag<T> getRejected()
- Specified by:
getRejectedin interfacePartitionBag<T>- Specified by:
getRejectedin interfacePartitionImmutableBagIterable<T>- Specified by:
getRejectedin interfacePartitionImmutableCollection<T>- Specified by:
getRejectedin interfacePartitionIterable<T>- Specified by:
getRejectedin interfacePartitionOrderedIterable<T>- Specified by:
getRejectedin interfacePartitionReversibleIterable<T>- Specified by:
getRejectedin interfacePartitionSortedBag<T>- Specified by:
getRejectedin interfacePartitionSortedIterable<T>
-
-