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
public interface PartitionImmutableCollection<T> extends PartitionIterable<T>
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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ImmutableCollection<T>
getRejected()
ImmutableCollection<T>
getSelected()
-
-
-
Method Detail
-
getSelected
ImmutableCollection<T> getSelected()
- Specified by:
getSelected
in interfacePartitionIterable<T>
-
getRejected
ImmutableCollection<T> getRejected()
- Specified by:
getRejected
in interfacePartitionIterable<T>
-
-