Interface CountRequestable<E>
- Type Parameters:
E- is the type of the elements aCountRequestable.
- All Known Subinterfaces:
IArrayList<E>, IContainer<E>, ILinkedList<E>, IMatrix<E>, IMatrixColumn<E>, IMatrixRow<E>, ISqlRecord
- All Known Implementing Classes:
AbstractContainer, AbstractExtendedContainer, ArrayContainerView, ArrayList, ContainerView, FilterContainerView, ImmutableList, IntervallContainerView, IterableContainerView, LinkedList, MappingContainerView, Matrix, MatrixColumn, MatrixRow, MultiContainerView, SingleContainer, SqlRecord
public interface CountRequestable<E>
- Author:
- Silvan Wyss
-
Method Summary
-
Method Details
-
getCount
int getCount()- Returns:
- the number of elements of the current
CountRequestable.
-
getCount
- Parameters:
selector-- Returns:
- the number of elements the given selector selects from the current
CountRequestable. Ignores null elements. - Throws:
RuntimeException- if the given selector is null.
-
getCountOf
- Parameters:
element-- Returns:
- the number how many times the current
CountRequestablecontains the given element.
-