Klasse ContainerView<E>
java.lang.Object
ch.nolix.core.container.base.AbstractContainer<E>
ch.nolix.core.container.arraylist.AbstractExtendedContainer<E>
ch.nolix.core.container.containerview.ContainerView<E>
- Typparameter:
E
- is the type of the elements of aContainerView
.
- 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
ContainerView
can read a given Iterable
or array. A
ContainerView
prevents that its accessed Iterable
or array
can be mutated. A ContainerView
does not prevent that the elements of
its Iterable
or array can be mutated.- Version:
- 2017-07-01
- Autor:
- Silvan Wyss
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungboolean
An object equals aContainerView
when the object is aIterable
that contains exactly the same elements in the same order like theContainerView
.static <E2> ContainerView
<E2> forArray
(E2[] array, E2[]... arrays) static <E2> ContainerView
<E2> forElementAndArray
(E2 element, E2[] array) static <E2> ContainerView
<E2> forEmpty()
static <E2> ContainerView
<E2> forIterable
(Iterable<? extends E2> iterable, Iterable<? extends E2>... iterables) static <E2> ContainerView
<E2> forIterableAndElement
(Iterable<? extends E2> iterable, E2 element, E2... elements) int
getCount()
getStoredAtOneBasedIndex
(int oneBasedIndex) int
hashCode()
boolean
iterator()
toString()
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, finalize, getClass, 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
-
Methodendetails
-
forArray
- Typparameter:
E2
- is the type of the elements of the given array and arrays.- Parameter:
array
-arrays
-- Gibt zurück:
- a new
ContainerView
for the given array and arrays. - Löst aus:
ArgumentIsNullException
- if the given array is null.ArgumentIsNullException
- if the given arrays is null.ArgumentIsNullException
- if one array of the given arrays is null.
-
forElementAndArray
- Typparameter:
E2
- is the type of the given element and elements of the given array.- Parameter:
element
-array
-- Gibt zurück:
- a new
ContainerView
for the given element and array. - Löst aus:
ArgumentIsNullException
- if the given element is null.ArgumentIsNullException
- if the given array is null.ArgumentIsNullException
- if one element of the given arrays is null.
-
forEmpty
- Typparameter:
E2
- is the type of the hypothetical elements of the created emptyContainerView
.- Gibt zurück:
- a new empty
ContainerView
.
-
forIterable
@SafeVarargs public static <E2> ContainerView<E2> forIterable(Iterable<? extends E2> iterable, Iterable<? extends E2>... iterables) - Typparameter:
E2
- is the type of the elements of the given iterable and iterables.- Parameter:
iterable
-iterables
-- Gibt zurück:
- a new
ContainerView
for the given iterable and iterables. - Löst aus:
ArgumentIsNullException
- if the given iterable is null.ArgumentIsNullException
- if the given iterables is null.ArgumentIsNullException
- if one of the given iterables is null.
-
forIterableAndElement
@SafeVarargs public static <E2> ContainerView<E2> forIterableAndElement(Iterable<? extends E2> iterable, E2 element, E2... elements) - Typparameter:
E2
- is the type of the elements of the given iterable and element and elements.- Parameter:
iterable
-element
-elements
-- Gibt zurück:
- a new
ContainerView
for the given iterable and element and elements. - Löst aus:
ArgumentIsNullException
- if the given iterable is null.ArgumentIsNullException
- if one of the given elements is null.
-
equals
An object equals aContainerView
when the object is aIterable
that contains exactly the same elements in the same order like theContainerView
. -
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.
-
hashCode
public int hashCode() -
isMaterialized
public boolean isMaterialized()- Gibt zurück:
- true if the current
MaterializationRequestable
is materialized, false otherwise.
-
iterator
-
toString
-