Interface Selectable<C,E>
- Type Parameters:
C- the criteria typeE- the element type
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A notional list of elements from which immutable sublists may be selected according to some
criteria.
- Author:
- Laird Nelson
-
Method Summary
-
Method Details
-
select
Selects and returns an immutableListrepresenting a sublist of thisSelectable's elements, as mediated by the supplied criteria.Implementations of this method must be idempotent and must return a determinate value.
Implementations of this method must not return
null.- Parameters:
criteria- the criteria to use; may benullto indicate no particular criteria should be used during selection- Returns:
- an immutable sublist of this
Selectable's elements effectively selected by the suppliedcriteria; nevernull
-