Klasse IterableContainerView<E>
java.lang.Object
ch.nolix.core.container.base.AbstractContainer<E>
ch.nolix.core.container.arraylist.AbstractExtendedContainer<E>
ch.nolix.core.container.containerview.IterableContainerView<E>
- Typparameter:
E
- is the type of the elements of aIterableContainerView
.
- 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>
- Version:
- 2017-11-26
- Autor:
- Silvan Wyss
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic <E2> IterableContainerView
<E2> forIterable
(Iterable<? extends E2> iterable) int
getCount()
getStoredAtOneBasedIndex
(int oneBasedIndex) boolean
iterator()
toString()
The time complexity of this implementation is O(n). if the currentIterableContainerView
contains n elements.Von Klasse geerbte Methoden ch.nolix.core.container.arraylist.AbstractExtendedContainer
createEmptyMutableList, getViewFromOneBasedStartIndexToOneBasedEndIndex, getViewOf, getViewOfStoredSelected, toOrderedList
Von 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, toWithOneBasedIndex
Von Klasse geerbte Methoden java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Von Schnittstelle geerbte Methoden ch.nolix.coreapi.stateapi.staterequestapi.EmptinessRequestable
containsAny
Von Schnittstelle geerbte Methoden java.lang.Iterable
forEach, spliterator
Von Schnittstelle geerbte Methoden ch.nolix.coreapi.stateapi.staterequestapi.MaterializationRequestable
isView
-
Konstruktordetails
-
IterableContainerView
public IterableContainerView()Creates a newIterableContainerView
for 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
IterableContainerView
for 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
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
MaterializationRequestable
is materialized, false otherwise.
-
iterator
-
toString
The time complexity of this implementation is O(n). if the currentIterableContainerView
contains n elements.- Setzt außer Kraft:
toString
in KlasseObject
- Gibt zurück:
- a
String
representation of the currentIterableContainerView
.
-