public class LongArray extends AbstractPrimitiveArray<long[],Long>
long elements.modCount| Constructor and Description |
|---|
LongArray()
Constructs an extensible array of longs, backed by a fixed-size array.
|
LongArray(int size)
Constructs an extensible array of longs, backed by a fixed-size array.
|
LongArray(long[] array)
Constructs an extensible array of longs, backed by the given fixed-size
array.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(int index,
Long element) |
boolean |
addAll(int index,
Collection<? extends Long> c) |
void |
addValue(int index,
long value) |
void |
addValue(long value) |
boolean |
contains(long value) |
boolean |
contains(Object o) |
boolean |
containsAll(Collection<?> c) |
Long |
defaultValue() |
Long |
get(int index) |
long[] |
getArray()
Gets the fixed-size array backing this instance.
|
long |
getValue(int index) |
int |
indexOf(long value) |
int |
indexOf(Object o) |
int |
lastIndexOf(long value) |
int |
lastIndexOf(Object o) |
boolean |
remove(Object o) |
boolean |
removeAll(Collection<?> c) |
boolean |
removeValue(long value) |
Long |
set(int index,
Long element) |
void |
setArray(long[] array)
Sets the fixed-size array backing this instance.
|
long |
setValue(int index,
long value) |
capacity, checkBounds, clear, copyArray, delete, ensureCapacity, getMaximumGrowth, insert, remove, setMaximumGrowth, setSize, sizeadd, equals, hashCode, iterator, listIterator, listIterator, removeRange, subListaddAll, isEmpty, retainAll, toArray, toArray, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitadd, addAll, equals, hashCode, isEmpty, iterator, listIterator, listIterator, replaceAll, retainAll, sort, spliterator, subList, toArray, toArrayparallelStream, removeIf, streampublic LongArray()
public LongArray(int size)
size - the initial sizepublic LongArray(long[] array)
array - the array to wrappublic void addValue(long value)
public boolean removeValue(long value)
public long getValue(int index)
public long setValue(int index,
long value)
public void addValue(int index,
long value)
public int indexOf(long value)
public int lastIndexOf(long value)
public boolean contains(long value)
public long[] getArray()
PrimitiveArraypublic void setArray(long[] array)
PrimitiveArrayarray - the new backing arraypublic Long get(int index)
public void add(int index,
Long element)
public int indexOf(Object o)
public int lastIndexOf(Object o)
lastIndexOf in interface List<Long>lastIndexOf in class AbstractList<Long>public boolean contains(Object o)
contains in interface Collection<Long>contains in interface List<Long>contains in class AbstractCollection<Long>public boolean remove(Object o)
remove in interface Collection<Long>remove in interface List<Long>remove in class AbstractCollection<Long>public boolean containsAll(Collection<?> c)
containsAll in interface Collection<Long>containsAll in interface List<Long>containsAll in class AbstractCollection<Long>public boolean addAll(int index,
Collection<? extends Long> c)
public boolean removeAll(Collection<?> c)
removeAll in interface Collection<Long>removeAll in interface List<Long>removeAll in class AbstractCollection<Long>public Long defaultValue()
Copyright © 2015–2022 SciJava. All rights reserved.