public class OneDimensionalBooleanArray extends OneDimensionalBooleanReadAccess.Base implements OneDimensionalBooleanAccess
OneDimensionalBooleanReadAccess.Base
MutableIndexable.ListView<T>
Indexable.IndexableSpliterator<TElem>
EMPTY
EMPTY_INDEXABLE_STRING
Constructor and Description |
---|
OneDimensionalBooleanArray(boolean... values)
Constructor.
|
OneDimensionalBooleanArray(BooleanIndexable source)
Copy constructor.
|
OneDimensionalBooleanArray(java.util.Collection<java.lang.Boolean> elements)
Constructor.
|
OneDimensionalBooleanArray(Indexable<java.lang.Boolean> source)
Copy constructor.
|
OneDimensionalBooleanArray(int numElements)
Constructor.
|
OneDimensionalBooleanArray(int numElements,
IntPredicate1 filler)
Initializing constructor.
|
OneDimensionalBooleanArray(MultiDimensionalBooleanArray array)
Copy constructor.
|
OneDimensionalBooleanArray(OneDimensionalBooleanArray source)
Copy constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
getValueAt(int index)
Get the value at the given index.
|
void |
setValueAt(boolean 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
applyOnEach, 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, 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, viewAsDoubleIndexable, viewAsFloatIndexable, viewAsIntIndexable, viewAsLongIndexable, viewAsShortIndexable, viewByIndex, viewFragile, 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, firstOrNull, foldLeft, forEachFragile, freeze, frozen, frozen, groupingBy, groupingBy, hasAll, hasAny, isSorted, isStrictlySorted, lastOrNull, mappingBy, mappingBy, optFirst, optLast, orderedCombination, sorted, toArray, toArray, toList, toString, uniform, viewCollection, viewCollection, viewCollectionN, viewCollectionN
empty, linearized
public OneDimensionalBooleanArray(boolean... values)
values
- values of this arraypublic OneDimensionalBooleanArray(int numElements)
false
.numElements
- number of elements in this arrayOneDimensionalBooleanArray(int, IntPredicate1)
public OneDimensionalBooleanArray(int numElements, @NotNull IntPredicate1 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 OneDimensionalBooleanArray(@NotNull Indexable<java.lang.Boolean> source)
source
- source to copyjava.lang.NullPointerException
- if source contains null
valuespublic OneDimensionalBooleanArray(@NotNull BooleanIndexable source)
source
- source to copypublic OneDimensionalBooleanArray(@NotNull java.util.Collection<java.lang.Boolean> elements)
elements
- elements to copyjava.lang.NullPointerException
- if elements contain null
valuespublic OneDimensionalBooleanArray(@NotNull OneDimensionalBooleanArray source)
source
- source to copypublic OneDimensionalBooleanArray(@NotNull MultiDimensionalBooleanArray array)
array
- sourve array to copypublic void setValueAt(boolean value, int index)
setValueAt
in interface OneDimensionalBooleanAccess
value
- value to setindex
- index of valuepublic boolean getValueAt(int index)
getValueAt
in interface OneDimensionalBooleanReadAccess
index
- index of value