Schnittstelle IIntervallContainerViewProvider<E>
- Typparameter:
E
- is the type of the elements of aIIntervallContainerViewProvider
.
- 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 IIntervallContainerViewProvider<E>
- Version:
- 2024-07-28
- Autor:
- Silvan Wyss
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibunggetViewFromOneBasedStartIndex
(int oneBasedStartIndex) getViewFromOneBasedStartIndexToOneBasedEndIndex
(int oneBasedStartIndex, int oneBasedEndIndex) getViewToOneBasedEndIndex
(int oneBasedEndIndex) getViewWithoutFirst
(int n) getViewWithoutLast
(int n)
-
Methodendetails
-
getViewFromOneBasedStartIndex
- Parameter:
oneBasedStartIndex
-- Gibt zurück:
- a new view of the current
IIntervallContainerViewProvider
from the given oneBasedStartIndex. - Löst aus:
RuntimeException
- if the given oneBasedStartIndex is bigger than the number of elements of the currentIContainer
.
-
getViewFromOneBasedStartIndexToOneBasedEndIndex
IContainer<E> getViewFromOneBasedStartIndexToOneBasedEndIndex(int oneBasedStartIndex, int oneBasedEndIndex) - Parameter:
oneBasedStartIndex
-oneBasedEndIndex
-- Gibt zurück:
- a new view of the current
IIntervallContainerViewProvider
from the given oneBasedStartIndex to the given oneBasedEndIndex. - Löst aus:
RuntimeException
- if the given oneBasedStartIndex is not positive.RuntimeException
- if the given oneBasedStartIndex is smaller than the given oneBasedEndIndex.RuntimeException
- if the given oneBasedEndIndex is bigger than the number of elements of the currentIContainer
.
-
getViewToOneBasedEndIndex
- Parameter:
oneBasedEndIndex
-- Gibt zurück:
- a new view
IContainer
of the currentIIntervallContainerViewProvider
to the given oneBasedEndIndex. - Löst aus:
RuntimeException
- if the given oneBasedEndIndex is not positive.RuntimeException
- if the given oneBasedEndIndex is bigger than the number of the elements of the currentIContainer
.
-
getViewWithoutFirst
IContainer<E> getViewWithoutFirst()- Gibt zurück:
- a new view
IContainer
view of the currentIIntervallContainerViewProvider
without the first element. - Löst aus:
RuntimeException
- if the currentIIntervallContainerViewProvider
is empty.
-
getViewWithoutFirst
- Parameter:
n
-- Gibt zurück:
- a new view
IContainer
view of the currentIIntervallContainerViewProvider
without the first n elements. - Löst aus:
RuntimeException
- if the given n is negative.
-
getViewWithoutLast
IContainer<E> getViewWithoutLast()- Gibt zurück:
- a new view
IContainer
view of the currentIIntervallContainerViewProvider
without the last element. - Löst aus:
RuntimeException
- if the currentIIntervallContainerViewProvider
is empty.
-
getViewWithoutLast
- Parameter:
n
-- Gibt zurück:
- a new view
IContainer
of the currentIIntervallContainerViewProvider
without the last n elements. - Löst aus:
RuntimeException
- if the given n is negative.
-