public interface OneDimensionalAccess<T> extends MutableIndexable<T>, MultiDimensionalAccess<T>, OneDimensionalReadAccess<T>
MutableIndexable.Base<TT>, MutableIndexable.ListView<T>OneDimensionalReadAccess.Base<TT>Indexable.IndexableSpliterator<TElem>| Modifier and Type | Field and Description |
|---|---|
static OneDimensionalAccess<?> |
EMPTY
Empty 1dimensional access.
|
EMPTY_INDEXABLE_STRING| Modifier and Type | Method and Description |
|---|---|
default void |
changeAll(java.util.function.BiFunction<? super T,int[],? extends T> operator)
Change all elements in this multi-dimensional array.
|
default void |
changeAll(java.util.function.Function<? super T,? extends T> operator)
Change all elements in this multi-dimensional array.
|
default OneDimensionalAccess<T> |
copy()
Get an independent copy.
|
static <E> OneDimensionalAccess<E> |
empty()
Get an empty 1dimensional access.
|
default void |
fillByIndex(java.util.function.IntFunction<? extends T> setter)
Set all values by their index.
|
default void |
setElement(T value,
int... indexes)
Set the element located at the given indexes.
|
default void |
setElementAt(T value,
int index)
Set the value at the given index.
|
applyOnEach, asList, copy, copyInternally, copyOf, filled, fillFrom, fromArray, fromArray, fromIndexable, fromIndexable, fromIterable, getCopy, getCopy, headSet, init, initByIndex, initFragile, listIterator, nulled, order, reverse, revert, revert, set, setFrom, setFrom, setFromArray, setMulti, shuffle, subSet, swap, swyp, sybSet, syt, tailSet, viewArray, viewArray, viewIndexable, viewListchange, setAll, setFrom, setFrom, setFromasBase, getElement, getNumDimensions, getNumElements, getSize, getSizes, singleton, view, visitAll, visitAlladdToArray, addToArray, addToCollection, asCollection, binarySearch, checkIndex, combine, compare, downCast, emptyIndexable, equal, findAll, findAllX, findFirst, findFirst, findFirst, findFirstX, findLast, findLast, findLast, findNext, findNext, findNext, findNextX, findPrevious, findPrevious, findPrevious, first, firstMatch, firstMatch, firstMatchX, forEachEntry, forEachEntryFragile, fromCollection, fromCollection, fromCountable, fromCountable, fromEnumeration, fromEnumeration, fromIterable, fromIterable, fromIterable, fromIterable, fromIterator, fromList, fromOptional, frozenSpliterator, get, getMod, gyt, hash, indexedView, indexes, init, initByIndex, intIndexes, isEmpty, isOrdered, isStrictlyOrdered, iterator, iterator, last, mapArray, optional, ordered, rotated, spliterator, toString, view, view, viewAsBooleanIndexable, viewAsByteIndexable, viewAsCharIndexable, viewAsDict, viewAsDoubleIndexable, viewAsFloatIndexable, viewAsIntIndexable, viewAsLongIndexable, viewAsShortIndexable, viewByIndex, viewFragile, viewList, viewList, viewListN, viewListN, viewTuple, viewTuple, viewTuple, viewTuple, viewTuple, viewTuple, viewTuple, viewTuple, withAppendedItem, withCachedHash, withExchangedItemAt, withInsertedItemAt, withPrependedItem, withRemovedItemAt, withSwappedItemsAtaddAllTo, combined, combined, containsEq, containsRef, downCast, equal, equals, filtered, filteredToIndexable, filterToCountable, firstOrNull, foldLeft, forEachFragile, freeze, frozen, frozen, getAny, groupingBy, groupingBy, hasAll, hasAny, isSorted, isStrictlySorted, lastOrNull, mappingBy, mappingBy, optFirst, optLast, orderedCombination, parellelStream, sorted, stream, toArray, toArray, toList, toString, uniform, viewCollection, viewCollection, viewCollectionN, viewCollectionNempty, linearizedstatic final OneDimensionalAccess<?> EMPTY
empty() instead.@NotNull default OneDimensionalAccess<T> copy()
copy in interface OneDimensionalReadAccess<T>default void setElementAt(T value, int index)
MutableIndexable.set(int, Object),
but has the same parameter order as the raw sister implementations of
this interface.value - value to setindex - index where to set the valuedefault void setElement(T value, int... indexes)
MultiDimensionalAccesssetElement in interface MultiDimensionalAccess<T>value - value to set at the location defined by the given indexesindexes - MultiDimensional.getNumDimensions() indexes inside the bounds
defined by MultiDimensional.getSizes()default void changeAll(@NotNull java.util.function.BiFunction<? super T,int[],? extends T> operator)
MultiDimensionalAccesschangeAll in interface MultiDimensionalAccess<T>operator - operator to change the value, with the current value as first
argument and the indexes as second, returns the new valuedefault void changeAll(@NotNull java.util.function.Function<? super T,? extends T> operator)
MultiDimensionalAccesschangeAll in interface MultiDimensionalAccess<T>operator - operator to change the value, with the current value as argumentdefault void fillByIndex(@NotNull java.util.function.IntFunction<? extends T> setter)
setter - setter which gets the index and returns the value to set for that index@NotNull static <E> OneDimensionalAccess<E> empty()
empty in interface Countable<T>empty in interface MutableIndexable<T>empty in interface OneDimensionalReadAccess<T>E - element typeEMPTY in a form the compiler accepts