Klasse ImmutableList<E>
java.lang.Object
ch.nolix.core.container.base.AbstractContainer<E>
ch.nolix.core.container.arraylist.AbstractExtendedContainer<E>
ch.nolix.core.container.immutablelist.ImmutableList<E>
- Typparameter:
E- is the type of the elements of aImmutableList.
- 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
ImmutableList is not mutable.- Autor:
- Silvan Wyss
-
Methodenübersicht
Modifikator und TypMethodeBeschreibungstatic <T> ImmutableList<T> static <T> ImmutableList<T> fromArray(T[] array) static <T> ImmutableList<T> fromIterable(Iterable<T> iterable) static <T> ImmutableList<T> fromStream(Stream<T> stream) intgetCount()getStoredAtOneBasedIndex(int oneBasedIndex) booleaniterator()toString()static <T> ImmutableList<T> withElement(T element) static <T> ImmutableList<T> withElements(T... elements) Von Klasse geerbte Methoden AbstractExtendedContainer
createEmptyMutableList, getViewFromOneBasedStartIndexToOneBasedEndIndex, getViewOf, getViewOfStoredSelected, toOrderedListVon 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, wait, wait, waitVon Schnittstelle geerbte Methoden EmptinessRequestable
containsAnyVon Schnittstelle geerbte Methoden Iterable
forEach, spliteratorVon Schnittstelle geerbte Methoden MaterializationRequestable
isView
-
Methodendetails
-
createEmpty
- Typparameter:
T- is the type of the elements theImmutableListwould have.- Gibt zurück:
- a new empty
ImmutableList.
-
fromArray
-
fromIterable
- Typparameter:
T-- Parameter:
iterable-- Gibt zurück:
- a new
ImmutableListwith the elements of the given iterable. - Löst aus:
ArgumentIsNullException- if the given iterable is null.ArgumentIsNullException- if one of the elements of the given iterable is null.
-
fromStream
- Typparameter:
T- is the type of the elements of the given stream.- Parameter:
stream-- Gibt zurück:
- a new
ImmutableListwith the elements from the given stream. - Löst aus:
ArgumentIsNullException- if the given stream is null.ArgumentIsNullException- if one of the elements of the given stream is null.
-
withElement
- Typparameter:
T- is the type of the given element.- Parameter:
element-- Gibt zurück:
- a new
ImmutableListwith the given element. - Löst aus:
ArgumentIsNullException- if the given element is null.
-
withElements
- Typparameter:
T- is the type of the given elements.- Parameter:
elements-- Gibt zurück:
- a new
ImmutableListwith the given elements. - Löst aus:
ArgumentIsNullException- if the given elements is null.ArgumentIsNullException- if one of the given elements 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
MaterializationRequestableis materialized, false otherwise.
-
iterator
-
toString
-