public class CompactableLongArrayList extends AbstractLongList implements java.util.RandomAccess, java.io.Serializable
A long array list that can use compact storage.
AbstractLongList.LongSubList
Constructor and Description |
---|
CompactableLongArrayList() |
CompactableLongArrayList(java.util.Collection<? extends java.lang.Long> c) |
CompactableLongArrayList(int initialCapacity) |
Modifier and Type | Method and Description |
---|---|
void |
add(int index,
long k) |
boolean |
add(long k) |
boolean |
addAll(java.util.Collection<? extends java.lang.Long> c) |
boolean |
addAll(int index,
java.util.Collection<? extends java.lang.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, clear, compareTo, contains, ensureIndex, ensureRestrictedIndex, equals, get, getElements, hashCode, indexOf, indexOf, lastIndexOf, lastIndexOf, peek, peekLong, pop, popLong, push, push, rem, remove, removeElements, set, size, top, topLong, toString
add, contains, containsAll, remove, removeAll, retainAll, toArray, toLongArray, toLongArray
containsAll, removeAll, retainAll, toArray, toArray
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
contains, containsAll, remove, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArray
contains, containsAll, remove, removeAll, retainAll, toArray, toLongArray, toLongArray
forEach, forEach
public CompactableLongArrayList()
public CompactableLongArrayList(int initialCapacity)
public CompactableLongArrayList(java.util.Collection<? extends java.lang.Long> c)
public void trim()
public int size()
size
in interface java.util.Collection<java.lang.Long>
size
in interface java.util.List<java.lang.Long>
size
in class java.util.AbstractCollection<java.lang.Long>
public boolean isEmpty()
public LongListIterator iterator()
iterator
in interface LongCollection
iterator
in interface LongIterable
iterator
in interface LongList
iterator
in interface java.lang.Iterable<java.lang.Long>
iterator
in interface java.util.Collection<java.lang.Long>
iterator
in interface java.util.List<java.lang.Long>
iterator
in class AbstractLongList
public LongListIterator listIterator()
listIterator
in interface LongList
listIterator
in interface java.util.List<java.lang.Long>
listIterator
in class AbstractLongList
public LongListIterator listIterator(int index)
listIterator
in interface LongList
listIterator
in interface java.util.List<java.lang.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, java.util.Collection<? extends java.lang.Long> c)
addAll
in interface java.util.List<java.lang.Long>
addAll
in class AbstractLongList
public boolean addAll(java.util.Collection<? extends java.lang.Long> c)
addAll
in interface java.util.Collection<java.lang.Long>
addAll
in interface java.util.List<java.lang.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
public LongList subList(int from, int to)
subList
in interface LongList
subList
in interface java.util.List<java.lang.Long>
subList
in class AbstractLongList