Interface IterableFilterProvider<E>
- Type Parameters:
E- the type of the elements aIterableFilterProvider
- All Known Subinterfaces:
ExtendedIterable<E>, IAppendableList<E>, IArrayList<E>, ILinkedList<E>, IMatrix<E>, IMatrixColumn<E>, IMatrixRow<E>, ISqlRecord
- All Known Implementing Classes:
AbstractExtendedIterable, ArrayExtendedIterableView, ArrayList, ExtendedIterableFilterView, ExtendedIterableIntervalView, ExtendedIterableMapperView, ExtendedIterableView, ImmutableList, IterableExtendedIterableView, LinkedList, Matrix, MatrixColumn, MatrixRow, MultiExtendedIterableView, SqlRecord
public interface IterableFilterProvider<E>
- Author:
- Silvan Wyss
-
Method Summary
Modifier and TypeMethodDescription<T extends E>
ExtendedIterable<T> getStoredOfType(Class<T> type) getStoredOthers(Predicate<E> selector) getStoredSelected(Predicate<? super E> selector)
-
Method Details
-
getStoredOfType
- Type Parameters:
T- the type of the elements of the returnedExtendedIterable- Parameters:
type-- Returns:
- a new
ExtendedIterablewith the elements from the currentIterableFilterProviderthat are of the given type, ignoring null elements - Throws:
RuntimeException- if the given type is null
-
getStoredOthers
- Parameters:
selector-- Returns:
- a new
ExtendedIterablewith the elements from the currentIterableFilterProviderthe given selector skips, ignoring null elements - Throws:
RuntimeException- if the given selector is null
-
getStoredSelected
- Parameters:
selector-- Returns:
- a new
ExtendedIterablewith the elements the given selector selects from the currentIterableFilterProvider, ignoring null elements - Throws:
RuntimeException- if the given selector is null
-