public class CompactableLongArrayList extends AbstractLongList implements RandomAccess, Serializable
A long array list that can use compact storage.
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, toString
add, contains, containsAll, containsAll, longIterator, rem, removeAll, removeAll, retainAll, retainAll, toArray, toArray, toArray, toLongArray, toLongArray
clear
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
add, clear, contains, containsAll, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArray
containsAll, longIterator, removeAll, retainAll, toArray, toArray, toLongArray, toLongArray
parallelStream, removeIf, stream
public 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 LongCollection
iterator
in interface LongIterable
iterator
in interface LongList
iterator
in interface Iterable<Long>
iterator
in interface Collection<Long>
iterator
in interface List<Long>
iterator
in class AbstractLongList
public LongListIterator listIterator()
listIterator
in interface LongList
listIterator
in interface List<Long>
listIterator
in class AbstractLongList
public LongListIterator listIterator(int index)
listIterator
in interface LongList
listIterator
in interface List<Long>
listIterator
in class AbstractLongList
public void add(int index, long k)
add
in interface LongList
add
in class AbstractLongList
public boolean add(long k)
add
in interface LongCollection
add
in interface LongList
add
in class AbstractLongList
public boolean addAll(int index, Collection<? extends Long> c)
addAll
in interface List<Long>
addAll
in class AbstractLongList
public boolean addAll(Collection<? extends Long> c)
addAll
in interface Collection<Long>
addAll
in interface List<Long>
addAll
in class AbstractLongList
public long set(int index, long k)
set
in interface LongList
set
in class AbstractLongList
public long removeLong(int index)
removeLong
in interface LongList
removeLong
in class AbstractLongList