public class OneDimensionalLongArray extends OneDimensionalLongReadAccess.Base implements OneDimensionalLongAccess
OneDimensionalLongReadAccess.BaseMutableIndexable.ListView<T>Indexable.IndexableSpliterator<TElem>EMPTYEMPTY_INDEXABLE_STRING| Constructor and Description |
|---|
OneDimensionalLongArray(java.util.Collection<java.lang.Long> elements)
Constructor.
|
OneDimensionalLongArray(Indexable<java.lang.Long> source)
Copy constructor.
|
OneDimensionalLongArray(int numElements)
Constructor.
|
OneDimensionalLongArray(int numElements,
java.util.function.IntToLongFunction filler)
Initializing constructor.
|
OneDimensionalLongArray(long... values)
Constructor.
|
OneDimensionalLongArray(LongIndexable source)
Copy constructor.
|
OneDimensionalLongArray(MultiDimensionalLongArray array)
Copy constructor.
|
OneDimensionalLongArray(OneDimensionalLongArray source)
Copy constructor.
|
| Modifier and Type | Method and Description |
|---|---|
long |
getValueAt(int index)
Get the value at the given index.
|
void |
setValueAt(long value,
int index)
Set the value at the given index.
|
int |
size()
Get the size.
|
asBaseequals, hashCode, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitchangeAllValues, changeValueAt, fillValuesByIndex, setasBase, get, singletonchangeAll, changeAll, copy, empty, fillByIndex, setElement, setElementAtapplyOnEach, 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, viewListchange, setAll, setFrom, setFrom, setFromgetElement, getNumDimensions, getNumElements, getSize, getSizes, 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, 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, linearizedpublic OneDimensionalLongArray(@NotNull long... values)
values - values of this arraypublic OneDimensionalLongArray(int numElements)
0L.numElements - number of elements in this arrayOneDimensionalLongArray(int, IntToLongFunction)public OneDimensionalLongArray(int numElements,
@NotNull
java.util.function.IntToLongFunction 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 OneDimensionalLongArray(@NotNull Indexable<java.lang.Long> source)
source - source to copyjava.lang.NullPointerException - if source contains null valuespublic OneDimensionalLongArray(@NotNull LongIndexable source)
source - source to copypublic OneDimensionalLongArray(@NotNull java.util.Collection<java.lang.Long> elements)
elements - elements to copyjava.lang.NullPointerException - if elements contain null valuespublic OneDimensionalLongArray(@NotNull OneDimensionalLongArray source)
source - source to copypublic OneDimensionalLongArray(@NotNull MultiDimensionalLongArray array)
array - sourve array to copypublic void setValueAt(long value,
int index)
setValueAt in interface OneDimensionalLongAccessvalue - value to setindex - index of valuepublic long getValueAt(int index)
getValueAt in interface OneDimensionalLongReadAccessindex - index of value