public class LongArray extends Object implements List<Long>, RandomAccess
| Modifier and Type | Class and Description |
|---|---|
static class |
LongArray.LongArrayIterator |
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_initialCapacity |
static long |
NULL |
| Constructor and Description |
|---|
LongArray() |
LongArray(Collection<Long> elements) |
LongArray(int initialCapacity) |
LongArray(long[] toWrap) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(int index,
long value) |
void |
add(int index,
Long value) |
boolean |
add(long value) |
boolean |
add(Long value) |
boolean |
addAll(Collection<? extends Long> values) |
boolean |
addAll(int firstIndex,
Collection<? extends Long> values) |
void |
clear() |
boolean |
contains(Object obj) |
boolean |
containsAll(Collection<?> objects) |
LongArray |
copyDedupeConsecutive() |
protected void |
expandIfNecessary(int delta) |
Long |
get(int index) |
long |
getPrimitive(int index) |
long[] |
getPrimitiveArray() |
int |
indexOf(Object obj) |
boolean |
isEmpty() |
Iterator<Long> |
iterator() |
int |
lastIndexOf(Object obj) |
ListIterator<Long> |
listIterator() |
ListIterator<Long> |
listIterator(int startIndex) |
Long |
remove(int index) |
boolean |
remove(Object obj) |
boolean |
removeAll(Collection<?> objects) |
boolean |
retainAll(Collection<?> objects) |
Long |
set(int index,
Long value) |
protected void |
shrinkIfNecessary() |
int |
size() |
LongArray |
sortInPlace() |
List<Long> |
subList(int fromIndex,
int toIndex) |
Object[] |
toArray() |
<T> T[] |
toArray(T[] wrapperArray) |
String |
toString() |
LongArray |
trimmedCopy() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitequals, hashCode, replaceAll, sort, spliteratorparallelStream, removeIf, streampublic static final int DEFAULT_initialCapacity
public static final long NULL
public LongArray()
public LongArray(int initialCapacity)
public LongArray(long[] toWrap)
public LongArray(Collection<Long> elements)
protected void expandIfNecessary(int delta)
protected void shrinkIfNecessary()
public void add(int index,
long value)
public boolean add(Long value)
public boolean add(long value)
public boolean addAll(Collection<? extends Long> values)
public boolean addAll(int firstIndex,
Collection<? extends Long> values)
public void clear()
public boolean contains(Object obj)
public boolean containsAll(Collection<?> objects)
containsAll in interface Collection<Long>containsAll in interface List<Long>public long getPrimitive(int index)
public boolean isEmpty()
public int lastIndexOf(Object obj)
lastIndexOf in interface List<Long>public ListIterator<Long> listIterator()
listIterator in interface List<Long>public ListIterator<Long> listIterator(int startIndex)
listIterator in interface List<Long>public boolean remove(Object obj)
public boolean removeAll(Collection<?> objects)
public boolean retainAll(Collection<?> objects)
public int size()
public Object[] toArray()
public <T> T[] toArray(T[] wrapperArray)
public long[] getPrimitiveArray()
public LongArray trimmedCopy()
public LongArray sortInPlace()
public LongArray copyDedupeConsecutive()
Copyright © 2009–2021. All rights reserved.