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.
|
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, viewList
change, setAll, setFrom, setFrom, setFrom
asBase, getElement, getNumDimensions, getNumElements, getSize, getSizes, singleton, view, visitAll, visitAll
addToArray, addToArray, addToCollection, asCollection, binarySearch, combine, compare, downCast, emptyIndexable, equal, findAll, findFirst, findFirst, findFirst, findLast, findLast, findLast, findNext, findNext, findNext, findPrevious, findPrevious, findPrevious, first, firstMatch, firstMatch, forEachEntry, forEachEntryFragile, fromCollection, fromCollection, fromCountable, fromCountable, fromEnumeration, fromEnumeration, fromIterable, fromIterable, fromIterable, fromIterable, fromIterator, fromList, fromOptional, frozenSpliterator, get, gyt, hash, indexedView, indexes, init, initByIndex, intIndexes, isEmpty, isOrdered, isStrictlyOrdered, iterator, iterator, last, mapArray, optional, ordered, rotated, spliterator, toList, toString, view, view, viewAsBooleanIndexable, viewAsByteIndexable, viewAsCharIndexable, viewAsDoubleIndexable, viewAsFloatIndexable, viewAsIntIndexable, viewAsLongIndexable, viewAsShortIndexable, viewByIndex, viewList, viewList, viewListN, viewListN, viewTuple, viewTuple, viewTuple, viewTuple, viewTuple, viewTuple, viewTuple, viewTuple, withAppendedItem, withCachedHash, withExchangedItemAt, withInsertedItemAt, withRemovedItemAt, withSwappedItemsAt
addAllTo, combined, combined, containsEq, containsRef, downCast, equal, equals, filtered, filteredToIndexable, filterToCountable, foldLeft, forEachFragile, frozen, frozen, groupingBy, groupingBy, hasAll, hasAny, isSorted, isStrictlySorted, mappingBy, mappingBy, orderedCombination, sorted, toArray, toArray, toString, uniform, viewCollection, viewCollection, viewCollectionN, viewCollectionN
empty, linearized
static 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)
MultiDimensionalAccess
setElement
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)
MultiDimensionalAccess
changeAll
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)
MultiDimensionalAccess
changeAll
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