Klasse AbstractExtendedContainer<E>
java.lang.Object
ch.nolix.core.container.base.AbstractContainer<E>
ch.nolix.core.container.arraylist.AbstractExtendedContainer<E>
- Typparameter:
E- is the type of the elements of aAbstractExtendedContainer.
- 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>
- Bekannte direkte Unterklassen:
ArrayContainerView, ArrayList, ContainerView, FilterContainerView, ImmutableList, IntervallContainerView, IterableContainerView, LinkedList, MappingContainerView, Matrix, MatrixColumn, MatrixRow, MultiContainerView, SingleContainer, SqlRecord
- Autor:
- Silvan Wyss
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifikator und TypMethodeBeschreibungprotected final <T> IArrayList<T> createEmptyMutableList(Marker<T> marker) The time complexity of this implementation is O(1).final IContainer<E> getViewFromOneBasedStartIndexToOneBasedEndIndex(int oneBasedStartIndex, int oneBasedEndIndex) final <T> IContainer<T> The time complexity of this implementation is O(n) if the currentAbstractContainercontains n elements.final IContainer<E> getViewOfStoredSelected(Predicate<E> selector) The time complexity of this implementation is O(1).final <C extends Comparable<C>>
IContainer<E> toOrderedList(Function<E, C> norm) The time complexity of this implementation is O(n * log(n)) if the currentAbstractContainercontains n elements.Von Klasse geerbte Methoden 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 Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitVon Schnittstelle geerbte Methoden CountRequestable
getCountVon Schnittstelle geerbte Methoden EmptinessRequestable
containsAnyVon Schnittstelle geerbte Methoden Iterable
forEach, spliteratorVon Schnittstelle geerbte Methoden IterableWithCopyableIterator
iteratorVon Schnittstelle geerbte Methoden MaterializationRequestable
isMaterialized, isViewVon Schnittstelle geerbte Methoden SingleSearchable
getStoredAtOneBasedIndex
-
Konstruktordetails
-
AbstractExtendedContainer
public AbstractExtendedContainer()
-
-
Methodendetails
-
getViewFromOneBasedStartIndexToOneBasedEndIndex
public final 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.
-
getViewOf
The time complexity of this implementation is O(n) if the currentAbstractContainercontains n elements. The time complexity of this implementation is O(n) if the currentAbstractContainercontains n elements.- Angegeben von:
getViewOfin SchnittstelleIMappingContainerViewProvider<E>- Setzt außer Kraft:
getViewOfin KlasseAbstractContainer<E>- Typparameter:
T- is the type of the elements the given mapper maps from the elements of the currentIMappingContainerViewProvider.- Parameter:
mapper-- Gibt zurück:
- a new
IContainerwith the elements the given mapper maps from the elements of the currentIMappingContainerViewProvider.
-
getViewOfStoredSelected
The time complexity of this implementation is O(1).- Parameter:
selector-- Gibt zurück:
- a new
IContainerview with the elements the given selector selects from the currentIFilteringContainerViewProvider. Ignores null elements.
-
toOrderedList
The time complexity of this implementation is O(n * log(n)) if the currentAbstractContainercontains n elements.- Typparameter:
C- is the type of theComparables the given comparableMapper returns.- Parameter:
norm-- Gibt zurück:
- a new
IContainerwith the elements of the currentIContainerordered from the smallest to the biggest element according to theComparables the given comparableMapper maps from the elements of the currentIContainer.
-
createEmptyMutableList
The time complexity of this implementation is O(1).- Angegeben von:
createEmptyMutableListin KlasseAbstractContainer<E>- Typparameter:
T- is the type of the elements the createdILinkedListcan contain.- Parameter:
marker-- Gibt zurück:
- a new empty
ILinkedList.
-