Package ch.nolix.coreapi.container.base
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
IIntervallContainerViewProviderfrom 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
IIntervallContainerViewProviderfrom 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
IContainerof the currentIIntervallContainerViewProviderto 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
IContainerview of the currentIIntervallContainerViewProviderwithout the first element. - Löst aus:
RuntimeException- if the currentIIntervallContainerViewProvideris empty.
-
getViewWithoutFirst
- Parameter:
n-- Gibt zurück:
- a new view
IContainerview of the currentIIntervallContainerViewProviderwithout the first n elements. - Löst aus:
RuntimeException- if the given n is negative.
-
getViewWithoutLast
IContainer<E> getViewWithoutLast()- Gibt zurück:
- a new view
IContainerview of the currentIIntervallContainerViewProviderwithout the last element. - Löst aus:
RuntimeException- if the currentIIntervallContainerViewProvideris empty.
-
getViewWithoutLast
- Parameter:
n-- Gibt zurück:
- a new view
IContainerof the currentIIntervallContainerViewProviderwithout the last n elements. - Löst aus:
RuntimeException- if the given n is negative.
-