Interface IIterableSearcher
- All Superinterfaces:
IIterableCountSearcher
- All Known Implementing Classes:
IterableSearcher
- Author:
- Silvan Wyss
-
Method Summary
Modifier and TypeMethodDescription<E> EgetStoredAtOneBasedIndex(Iterable<E> iterable, int oneBasedIndex) Methods inherited from interface IIterableCountSearcher
getCount
-
Method Details
-
getStoredAtOneBasedIndex
- Type Parameters:
E- the type of the elements of the given iterable- Parameters:
iterable- the searchedIterable, is considered to be empty when is nulloneBasedIndex- the one-based index at which an element is requested- Returns:
- the element at the given oneBasedIndexed from the given iterable
- Throws:
RuntimeException- if the given iterable does not contain an element at the given oneBasedIndex
-