Interface PartitionImmutableList<T>
- All Superinterfaces:
PartitionImmutableCollection<T>
,PartitionIterable<T>
,PartitionList<T>
,PartitionOrderedIterable<T>
,PartitionReversibleIterable<T>
- All Known Implementing Classes:
PartitionImmutableListImpl
public interface PartitionImmutableList<T>
extends PartitionImmutableCollection<T>, PartitionList<T>
A PartitionImmutableList is the result of splitting an immutable list into two immutable lists 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
-
Method Details
-
getSelected
ImmutableList<T> getSelected()- Specified by:
getSelected
in interfacePartitionImmutableCollection<T>
- Specified by:
getSelected
in interfacePartitionIterable<T>
- Specified by:
getSelected
in interfacePartitionList<T>
- Specified by:
getSelected
in interfacePartitionOrderedIterable<T>
- Specified by:
getSelected
in interfacePartitionReversibleIterable<T>
-
getRejected
ImmutableList<T> getRejected()- Specified by:
getRejected
in interfacePartitionImmutableCollection<T>
- Specified by:
getRejected
in interfacePartitionIterable<T>
- Specified by:
getRejected
in interfacePartitionList<T>
- Specified by:
getRejected
in interfacePartitionOrderedIterable<T>
- Specified by:
getRejected
in interfacePartitionReversibleIterable<T>
-