public class OneDimensionalByteArray extends java.lang.Object implements OneDimensionalByteAccess
OneDimensionalByteReadAccess.Base
MutableIndexable.ListView<T>
Indexable.IndexableSpliterator<TElem>
EMPTY
EMPTY_INDEXABLE_STRING
Constructor and Description |
---|
OneDimensionalByteArray(byte... values)
Constructor.
|
OneDimensionalByteArray(ByteIndexable source)
Copy constructor.
|
OneDimensionalByteArray(java.util.Collection<java.lang.Byte> elements)
Constructor.
|
OneDimensionalByteArray(Indexable<java.lang.Byte> source)
Copy constructor.
|
OneDimensionalByteArray(int numElements)
Constructor.
|
OneDimensionalByteArray(int numElements,
IntToByteFunction1 filler)
Initializing constructor.
|
OneDimensionalByteArray(MultiDimensionalByteArray array)
Copy constructor.
|
OneDimensionalByteArray(OneDimensionalByteArray source)
Copy constructor.
|
Modifier and Type | Method and Description |
---|---|
byte |
getValueAt(int index)
Get the value at the given index.
|
void |
setValueAt(byte value,
int index)
Set the value at the given index.
|
int |
size()
Get the size.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, 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 OneDimensionalByteArray(byte... values)
values
- values of this arraypublic OneDimensionalByteArray(int numElements)
0
.numElements
- number of elements in this arrayOneDimensionalByteArray(int, IntToByteFunction1)
public OneDimensionalByteArray(int numElements, @NotNull IntToByteFunction1 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 OneDimensionalByteArray(@NotNull Indexable<java.lang.Byte> source)
source
- source to copyjava.lang.NullPointerException
- if source contains null
valuespublic OneDimensionalByteArray(@NotNull ByteIndexable source)
source
- source to copypublic OneDimensionalByteArray(@NotNull java.util.Collection<java.lang.Byte> elements)
elements
- elements to copyjava.lang.NullPointerException
- if elements contain null
valuespublic OneDimensionalByteArray(@NotNull OneDimensionalByteArray source)
source
- source to copypublic OneDimensionalByteArray(@NotNull MultiDimensionalByteArray array)
array
- sourve array to copypublic void setValueAt(byte value, int index)
setValueAt
in interface OneDimensionalByteAccess
value
- value to setindex
- index of valuepublic byte getValueAt(int index)
getValueAt
in interface OneDimensionalByteReadAccess
index
- index of value