Klasse IntervallContainerView<E>
java.lang.Object
ch.nolix.core.container.base.AbstractContainer<E>
ch.nolix.core.container.arraylist.AbstractExtendedContainer<E>
ch.nolix.core.container.arraylist.IntervallContainerView<E>
- Typparameter:
E- is the type of the elements of aIntervallContainerView.
- Alle implementierten Schnittstellen:
Filterable<E>,Groupable<E>,IContainer<E>,IFilteringContainerViewProvider<E>,IIntervallContainerViewProvider<E>,IMappingContainerViewProvider<E>,Mappable<E>,AggregationRequestable<E>,ArrayMappable<E>,CountRequestable<E>,IndexRequestable<E>,IterableWithCopyableIterator<E>,SingleSearchable<E>,StoringRequestable<E>,StringMappable,EmptinessRequestable,MaterializationRequestable,Iterable<E>
A
IntervallContainerView can iterate over a part of another
container.
A IntervallContainerView must not use the methods of the accessed
container except the iterator method. The reason is that the accessed
container can be a specialized container that does not use its iterator in
any of its declared or overwritten method.- Version:
- 2017-08-27
- Autor:
- Silvan Wyss
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic <E2> IntervallContainerView<E2> forContainerAndStartIndexAndEndIndex(AbstractContainer<E2> container, int startIndex, int endIndex) intgetCount()getStoredAtOneBasedIndex(int oneBasedIndex) booleaniterator()toString()Von Klasse geerbte Methoden ch.nolix.core.container.arraylist.AbstractExtendedContainer
createEmptyMutableList, getViewFromOneBasedStartIndexToOneBasedEndIndex, getViewOf, getViewOfStoredSelected, toOrderedListVon Klasse geerbte Methoden ch.nolix.core.container.base.AbstractContainer
contains, containsAll, containsAll, containsAll, containsAny, containsAny, containsAnyOf, containsAnyOf, containsAsManyAs, containsEqualing, containsExactlyEqualingInSameOrder, containsExactlyInSameOrder, containsLessThan, containsMoreThan, containsNone, containsNone, containsNoneOf, containsOnce, containsOne, containsOne, containsOneEqualing, containsOnly, getAverage, getAverageOrZero, getCount, getCountOf, getMax, getMaxOrZero, getMedian, getMedianOrZero, getMin, getMinOrZero, getOneBasedIndexOfFirst, getOneBasedIndexOfFirstEqualElement, getOneBasedIndexOfFirstOccurrenceOf, getOptionalStoredFirst, getOptionalStoredFirst, getStandardDeviation, getStoredByMax, getStoredByMin, getStoredFirst, getStoredFirst, getStoredFirstOfType, getStoredInGroups, getStoredLast, getStoredOfType, getStoredOne, getStoredOne, getStoredOthers, getStoredSelected, getSum, getSumOfInts, getVariance, getViewFromOneBasedStartIndex, getViewToOneBasedEndIndex, getViewWithoutFirst, getViewWithoutFirst, getViewWithoutLast, getViewWithoutLast, isEmpty, to, toArray, toByteArray, toCharArray, toConcatenatedString, toDoubleArray, toIntArray, toLongArray, toMultiples, toNumbers, toReversedList, toStringArray, toStrings, toStringWithSeparator, toStringWithSeparator, toWithOneBasedIndexVon Klasse geerbte Methoden java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitVon Schnittstelle geerbte Methoden ch.nolix.coreapi.state.staterequest.EmptinessRequestable
containsAnyVon Schnittstelle geerbte Methoden java.lang.Iterable
forEach, spliteratorVon Schnittstelle geerbte Methoden ch.nolix.coreapi.state.staterequest.MaterializationRequestable
isView
-
Methodendetails
-
forContainerAndStartIndexAndEndIndex
public static <E2> IntervallContainerView<E2> forContainerAndStartIndexAndEndIndex(AbstractContainer<E2> container, int startIndex, int endIndex) - Typparameter:
E2- is the type of the elements of the createdIntervallContainerView.- Parameter:
container-startIndex-endIndex-- Gibt zurück:
- a new
IntervallContainerViewwith the given container, startIndex and endIndex. - Löst aus:
ArgumentIsNullException- if the given container is null.NonPositiveArgumentException- if the given startIndex is not positive.NonPositiveArgumentException- if the given endIndex is not positive.SmallerArgumentException- if the given endIndex is smaller than the given startIndex.BiggerArgumentException- if the given endIndex is bigger than the number of elements of the given container.
-
getCount
public int getCount()- Gibt zurück:
- the number of elements of the current
CountRequestable.
-
getStoredAtOneBasedIndex
- Parameter:
oneBasedIndex-- Gibt zurück:
- the element at the given oneBasedIndex. The element can be null.
-
isMaterialized
public boolean isMaterialized()- Gibt zurück:
- true if the current
MaterializationRequestableis materialized, false otherwise.
-
iterator
-
toString
-