Schnittstelle IndexRequestable<E>
- Typparameter:
E
- is the type of the elements aIndexRequestable
.
- Alle bekannten Unterschnittstellen:
IArrayList<E>
,ICachingContainer<E>
,IContainer<E>
,ILinkedList<E>
,IMatrix<E>
,ISqlRecord
- Alle bekannten Implementierungsklassen:
AbstractContainer
,AbstractExtendedContainer
,ArrayContainerView
,ArrayList
,CachingContainer
,ContainerView
,FilterContainerView
,ImmutableList
,IntervallContainerView
,IterableContainerView
,LinkedList
,MappingContainerView
,Matrix
,MatrixColumn
,MatrixRow
,MultiContainerView
,SqlRecord
public interface IndexRequestable<E>
- Version:
- 2024-11-12
- Autor:
- Silvan Wyss
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungint
getOneBasedIndexOfFirst
(Predicate<E> selector) int
int
-
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 currentIndexRequestable
does 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
IndexRequestable
that equals the given object. - Löst aus:
RuntimeException
- if the currentIndexRequestable
does 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 currentIndexRequestable
does not contain the given object.
-