Klasse IterableReadContainer<E>
java.lang.Object
ch.nolix.core.container.base.Container<E>
ch.nolix.core.container.readcontainer.IterableReadContainer<E>
- Typparameter:
E- is the type of the elements of aIterableReadContainer.
- Alle implementierten Schnittstellen:
IContainer<E>,IMappableContainer<E>,ISearchableContainer<E>,IStatisticalConainer<E>,IterableWithCopyableIterator<E>,IViewProviderContainer<E>,StoringRequestable<E>,EmptinessRequestable,MaterializationRequestable,Iterable<E>
- Version:
- 2017-11-26
- Autor:
- Silvan Wyss
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungprotected <E2> ILinkedList<E2> createEmptyMutableList(Marker<E2> marker) static <E2> IterableReadContainer<E2> forIterable(Iterable<? extends E2> iterable) intgetCount()getStoredAt1BasedIndex(int p1BasedIndex) booleaniterator()<C extends Comparable<C>>
IContainer<E> toOrderedList(Function<E, C> norm) toString()The complexity of this implementation is O(n). if the currentIterableReadContainercontains n elements.Von Klasse geerbte Methoden ch.nolix.core.container.base.Container
contains, containsAll, containsAll, containsAll, containsAny, containsAny, containsAny, containsAnyOf, containsAnyOf, containsAsManyAs, containsEqualing, containsExactlyEqualingInSameOrder, containsExactlyInSameOrder, containsLessThan, containsMoreThan, containsNone, containsNone, containsNoneOf, containsOnce, containsOne, containsOne, containsOneEqualing, containsOnly, get1BasedIndexOfFirst, get1BasedIndexOfFirstEqualElement, get1BasedIndexOfFirstOccuranceOf, getAverage, getAverageOrZero, getCount, getCount, getMax, getMaxOrZero, getMedian, getMedianOrZero, getMin, getMinOrZero, getOptionalStoredFirst, getOptionalStoredFirst, getStandardDeviation, getStoredAny, getStoredByMax, getStoredByMin, getStoredFirst, getStoredFirst, getStoredGroups, getStoredOfType, getStoredOne, getStoredOne, getStoredOther, getStoredSelected, getSum, getSumOfIntegers, getVariance, getViewFrom1BasedStartIndex, getViewFrom1BasedStartIndexTo1BasedEndIndex, getViewTo1BasedEndIndex, getViewWithoutFirst, getViewWithoutFirst, getViewWithoutLast, getViewWithoutLast, isEmpty, to, toArray, toByteArray, toCharArray, toConcatenatedString, toDoubleArray, toFromGroups, toIntArray, toLongArray, toReversedList, toStringArray, toStrings, toStringWithSeparator, toStringWithSeparatorVon Klasse geerbte Methoden java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitVon Schnittstelle geerbte Methoden java.lang.Iterable
forEach, spliteratorVon Schnittstelle geerbte Methoden ch.nolix.coreapi.stateapi.staterequestapi.MaterializationRequestable
isView
-
Konstruktordetails
-
IterableReadContainer
public IterableReadContainer()Creates a newIterableReadContainerfor a new empty container.
-
-
Methodendetails
-
forIterable
- Typparameter:
E2- is the type of the elements of the given iterable.- Parameter:
iterable-- Gibt zurück:
- a new
IterableReadContainerfor the given iterable. - Löst aus:
ArgumentIsNullException- if the given iterable is null.
-
getCount
public int getCount()- Gibt zurück:
- the number of elements of the current
IStatisticalConainer.
-
getStoredAt1BasedIndex
- Parameter:
p1BasedIndex-- Gibt zurück:
- the element at the given p1BasedIndex.
-
getStoredLast
- Gibt zurück:
- the last element of the current
ISearchableContainer.
-
isMaterialized
public boolean isMaterialized()- Gibt zurück:
- true if the current
MaterializationRequestableis materialized, false otherwise.
-
iterator
-
toOrderedList
- Typparameter:
C- is the type of theComparables the given norm returns.- Parameter:
norm-- Gibt zurück:
- a new
IContainerwith the elements of the currentIContainerordered from the smallest to the biggest element according to the given norm.
-
toString
The complexity of this implementation is O(n). if the currentIterableReadContainercontains n elements.- Setzt außer Kraft:
toStringin KlasseObject- Gibt zurück:
- a
Stringrepresentation of the currentIterableReadContainer.
-
createEmptyMutableList
- Angegeben von:
createEmptyMutableListin KlasseContainer<E>- Typparameter:
E2- is the type of the elements the createdILinkedListcan contain.- Parameter:
marker-- Gibt zurück:
- a new empty
ILinkedList.
-