Schnittstelle IndexRequestable<E>
- Typparameter:
E- is the type of the elements aIndexRequestable.
- 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 IndexRequestable<E>
- Autor:
- Silvan Wyss
-
Methodenübersicht
-
Methodendetails
-
getOneBasedIndexOfFirst
- Parameter:
selector-- Gibt zurück:
- the 1-based index of the first element the given selector selects
from the current
IndexRequestable. Ignores null elements. - Löst aus:
RuntimeException- if the given selector is null.RuntimeException- if the currentIndexRequestabledoes not contain an element the given selector selects.
-
getOneBasedIndexOfFirstEqualElement
- Parameter:
object-- Gibt zurück:
- the 1-based index of the first element of the current
IndexRequestablethat equals the given object. - Löst aus:
RuntimeException- if the currentIndexRequestabledoes not contain an element that equals the given object.
-
getOneBasedIndexOfFirstOccurrenceOf
- Parameter:
object-- Gibt zurück:
- the 1-based index of the first occurrence of the given object in the
current
IndexRequestable. - Löst aus:
RuntimeException- if the currentIndexRequestabledoes not contain the given object.
-