Interface IIterableSearcher

All Superinterfaces:
IIterableCountSearcher
All Known Implementing Classes:
IterableSearcher

public interface IIterableSearcher extends IIterableCountSearcher
Author:
Silvan Wyss
  • Method Details

    • getStoredAtOneBasedIndex

      <E> E getStoredAtOneBasedIndex(Iterable<E> iterable, int oneBasedIndex)
      Type Parameters:
      E - the type of the elements of the given iterable
      Parameters:
      iterable - the searched Iterable, is considered to be empty when is null
      oneBasedIndex - 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