public class CompactableLongArrayList extends AbstractLongList implements RandomAccess, Serializable
AbstractLongList.LongSubList| Constructor and Description |
|---|
CompactableLongArrayList() |
CompactableLongArrayList(Collection<? extends Long> c) |
CompactableLongArrayList(int initialCapacity) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(int index,
long k) |
boolean |
add(long k) |
boolean |
addAll(Collection<? extends Long> c) |
boolean |
addAll(int index,
Collection<? extends Long> c) |
long |
getLong(int i) |
boolean |
isEmpty() |
LongListIterator |
iterator() |
LongListIterator |
listIterator() |
LongListIterator |
listIterator(int index) |
long |
removeLong(int index) |
long |
set(int index,
long k) |
int |
size() |
LongList |
subList(int from,
int to) |
void |
trim() |
add, addAll, addAll, addAll, addAll, addElements, addElements, compareTo, contains, ensureIndex, ensureRestrictedIndex, equals, get, getElements, hashCode, indexOf, indexOf, lastIndexOf, lastIndexOf, longListIterator, longListIterator, longSubList, peek, peekLong, pop, popLong, push, push, rem, remove, remove, removeElements, set, size, top, topLong, toStringadd, contains, containsAll, containsAll, longIterator, rem, removeAll, removeAll, retainAll, retainAll, toArray, toArray, toArray, toLongArray, toLongArrayclearclone, finalize, getClass, notify, notifyAll, wait, wait, waitadd, clear, contains, containsAll, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArraycontainsAll, longIterator, removeAll, retainAll, toArray, toArray, toLongArray, toLongArrayparallelStream, removeIf, streampublic CompactableLongArrayList()
public CompactableLongArrayList(int initialCapacity)
public CompactableLongArrayList(Collection<? extends Long> c)
public void trim()
public int size()
size in interface Collection<Long>size in interface List<Long>size in class AbstractCollection<Long>public boolean isEmpty()
public LongListIterator iterator()
iterator in interface LongCollectioniterator in interface LongIterableiterator in interface LongListiterator in interface Iterable<Long>iterator in interface Collection<Long>iterator in interface List<Long>iterator in class AbstractLongListpublic LongListIterator listIterator()
listIterator in interface LongListlistIterator in interface List<Long>listIterator in class AbstractLongListpublic LongListIterator listIterator(int index)
listIterator in interface LongListlistIterator in interface List<Long>listIterator in class AbstractLongListpublic void add(int index,
long k)
add in interface LongListadd in class AbstractLongListpublic boolean add(long k)
add in interface LongCollectionadd in interface LongListadd in class AbstractLongListpublic boolean addAll(int index,
Collection<? extends Long> c)
addAll in interface List<Long>addAll in class AbstractLongListpublic boolean addAll(Collection<? extends Long> c)
addAll in interface Collection<Long>addAll in interface List<Long>addAll in class AbstractLongListpublic long set(int index,
long k)
set in interface LongListset in class AbstractLongListpublic long removeLong(int index)
removeLong in interface LongListremoveLong in class AbstractLongList