Schnittstelle Filterable<E>
- Typparameter:
E- is the type of the elements aFilterable.
- Alle bekannten Unterschnittstellen:
IArrayList<E>, IContainer<E>, ILinkedList<E>, IMatrix<E>, ISqlRecord
- Alle bekannten Implementierungsklassen:
AbstractContainer, AbstractExtendedContainer, ArrayContainerView, ArrayList, ContainerView, FilterContainerView, ImmutableList, IntervallContainerView, IterableContainerView, LinkedList, MappingContainerView, Matrix, MatrixColumn, MatrixRow, MultiContainerView, SingleContainer, SqlRecord
public interface Filterable<E>
- Autor:
- Silvan Wyss
-
Methodenübersicht
Modifikator und TypMethodeBeschreibung<T extends E>
IContainer<T> getStoredOfType(Class<T> type) getStoredOthers(Predicate<E> selector) getStoredSelected(Predicate<? super E> selector)
-
Methodendetails
-
getStoredOfType
- Typparameter:
T- is the type of the elements of the returnedIContainer.- Parameter:
type-- Gibt zurück:
- a new
IContainerwith the elements from the currentFilterablethat are of the given type. Ignores null elements. - Löst aus:
RuntimeException- if the given type is null.
-
getStoredOthers
- Parameter:
selector-- Gibt zurück:
- a new
IContainerwith the elements from the currentFilterablethe given selector skips. Ignores null elements. - Löst aus:
RuntimeException- if the given selector is null.
-
getStoredSelected
- Parameter:
selector-- Gibt zurück:
- a new
IContainerwith the elements the given selector selects from the currentFilterable. Ignores null elements. - Löst aus:
RuntimeException- if the given selector is null.
-