public class OneDimensionalShortArray extends OneDimensionalShortReadAccess.Base implements OneDimensionalShortAccess
OneDimensionalShortReadAccess.Base
MutableIndexable.ListView<T>
Indexable.IndexableSpliterator<TElem>
EMPTY
EMPTY_INDEXABLE_STRING
Constructor and Description |
---|
OneDimensionalShortArray(java.util.Collection<java.lang.Short> elements)
Constructor.
|
OneDimensionalShortArray(Indexable<java.lang.Short> source)
Copy constructor.
|
OneDimensionalShortArray(int numElements)
Constructor.
|
OneDimensionalShortArray(int numElements,
IntToShortFunction1 filler)
Initializing constructor.
|
OneDimensionalShortArray(MultiDimensionalShortArray array)
Copy constructor.
|
OneDimensionalShortArray(OneDimensionalShortArray source)
Copy constructor.
|
OneDimensionalShortArray(short... values)
Constructor.
|
OneDimensionalShortArray(ShortIndexable source)
Copy constructor.
|
Modifier and Type | Method and Description |
---|---|
short |
getValueAt(int index)
Get the value at the given index.
|
void |
setValueAt(short value,
int index)
Set the value at the given index.
|
int |
size()
Get the size.
|
asBase
equals, hashCode, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
changeAllValues, changeValueAt, fillValuesByIndex, set
asBase, get, singleton
changeAll, changeAll, copy, empty, fillByIndex, setElement, setElementAt
asList, copy, copyInternally, copyOf, filled, fillFrom, fromArray, fromArray, fromIndexable, fromIndexable, fromIterable, getCopy, getCopy, headSet, init, initByIndex, initFragile, listIterator, nulled, order, reverse, revert, revert, setFrom, setFrom, setFromArray, setMulti, shuffle, subSet, swap, swyp, sybSet, syt, tailSet, viewArray, viewArray, viewIndexable, viewList
change, setAll, setFrom, setFrom, setFrom
getElement, getNumDimensions, getNumElements, getSize, getSizes, 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, 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
public OneDimensionalShortArray(short... values)
values
- values of this arraypublic OneDimensionalShortArray(int numElements)
0
.numElements
- number of elements in this arrayOneDimensionalShortArray(int, IntToShortFunction1)
public OneDimensionalShortArray(int numElements, @NotNull IntToShortFunction1 filler)
numElements
- number of elements in this arrayfiller
- filler which is called once for each element with its index
and expected to return the value to be set for that indexpublic OneDimensionalShortArray(@NotNull Indexable<java.lang.Short> source)
source
- source to copyjava.lang.NullPointerException
- if source contains null
valuespublic OneDimensionalShortArray(@NotNull ShortIndexable source)
source
- source to copypublic OneDimensionalShortArray(@NotNull java.util.Collection<java.lang.Short> elements)
elements
- elements to copyjava.lang.NullPointerException
- if elements contain null
valuespublic OneDimensionalShortArray(@NotNull OneDimensionalShortArray source)
source
- source to copypublic OneDimensionalShortArray(@NotNull MultiDimensionalShortArray array)
array
- sourve array to copypublic void setValueAt(short value, int index)
setValueAt
in interface OneDimensionalShortAccess
value
- value to setindex
- index of valuepublic short getValueAt(int index)
getValueAt
in interface OneDimensionalShortReadAccess
index
- index of value