public abstract class AbstractLongList extends AbstractLongCollection implements LongList
LongList interface.| Constructor and Description |
|---|
AbstractLongList() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(int index,
java.lang.Long element)
Deprecated.
Please use the corresponding type-specific function instead.
|
boolean |
add(long e)
A Type-Specific implementation of add function that delegates to
List.add(int, Object) |
boolean |
addAll(java.util.Collection<? extends java.lang.Long> c)
Deprecated.
Please use the corresponding type-specific function instead.
|
boolean |
addAll(LongCollection c)
A Type-Specific implementation that iterates over the elements and adds them.
|
boolean |
addAll(LongList c)
A Type-Specific implementation that iterates over the elements and adds them.
|
AbstractLongList |
copy()
A Function that does a shallow clone of the Collection itself.
|
boolean |
equals(java.lang.Object o)
Compares if the list are the same.
|
int |
hashCode()
Generates the hashcode based on the values stored in the list.
|
int |
indexOf(long e)
The indexOf implementation iterates over all elements and compares them to the search value.
|
int |
indexOf(java.lang.Object o)
Deprecated.
|
LongIterator |
iterator()
Returns a Type-Specific Iterator to reduce (un)boxing
|
int |
lastIndexOf(long e)
The lastIndexOf implementation iterates over all elements and compares them to the search value.
|
int |
lastIndexOf(java.lang.Object o)
Deprecated.
|
LongListIterator |
listIterator()
A Type-Specific Iterator of listIterator
|
LongListIterator |
listIterator(int index)
A Type-Specific Iterator of listIterator
|
void |
size(int size)
A function to ensure the elements are within the requested size.
|
LongList |
subList(int fromIndex,
int toIndex)
A Type-Specific List of subList
|
boolean |
swapRemoveLong(long e)
A Highly Optimized remove function that removes the desired element.
|
add, contains, contains, containsAll, containsAll, containsAny, containsAny, remLong, remove, removeAll, removeAll, retainAll, retainAll, toLongArray, toLongArrayclear, isEmpty, removeAll, retainAll, size, toArray, toArray, toStringadd, add, addAll, addAll, addElements, addElements, addElements, addIfAbsent, addIfPresent, contains, extractElements, fillBuffer, get, getElements, getElements, getLong, remove, remove, removeElements, removeLong, replaceAll, replaceLongs, set, set, sort, sort, spliterator, swapRemove, synchronize, synchronize, unmodifiable, unstableSort, unstableSortaddAll, addAll, addAll, contains, containsAll, containsAny, containsAny, parallelPrimitiveStream, pour, primitiveStream, remIf, remLong, removeAll, removeAll, removeIf, retainAll, retainAll, toLongArray, toLongArrayarrayflatMap, asAsync, count, distinct, filter, findFirst, flatMap, forEach, forEach, forEach, limit, map, matchesAll, matchesAny, matchesNone, peek, pourAsList, pourAsSet, reduce, reduce, sortedpublic boolean add(long e)
List.add(int, Object)add in interface LongCollectionadd in interface LongListe - the element to addList.add(Object)@Deprecated
public void add(int index,
java.lang.Long element)
This default implementation delegates to the corresponding type-specific function.
add in interface java.util.List<java.lang.Long>public boolean addAll(LongCollection c)
addAll in interface LongCollectionaddAll in class AbstractLongCollectionc - the elements that wants to be addedpublic boolean addAll(LongList c)
@Deprecated public boolean addAll(java.util.Collection<? extends java.lang.Long> c)
This default implementation delegates to the corresponding type-specific function.
This default implementation delegates to the corresponding type-specific function.
addAll in interface java.util.Collection<java.lang.Long>addAll in interface java.util.List<java.lang.Long>addAll in class AbstractLongCollection@Deprecated public int indexOf(java.lang.Object o)
indexOf in interface java.util.List<java.lang.Long>indexOf in interface LongListo - the value that the index is searched for.@Deprecated public int lastIndexOf(java.lang.Object o)
lastIndexOf in interface java.util.List<java.lang.Long>lastIndexOf in interface LongListo - the value that the index is searched for.public int indexOf(long e)
public int lastIndexOf(long e)
lastIndexOf in interface LongListe - the value that the index is searched for.public boolean swapRemoveLong(long e)
LongListswapRemoveLong in interface LongListe - the element that should be removedpublic boolean equals(java.lang.Object o)
equals in interface java.util.Collection<java.lang.Long>equals in interface java.util.List<java.lang.Long>equals in class java.lang.Objectpublic int hashCode()
hashCode in interface java.util.Collection<java.lang.Long>hashCode in interface java.util.List<java.lang.Long>hashCode in class java.lang.Objectpublic LongList subList(int fromIndex, int toIndex)
LongListpublic LongIterator iterator()
LongCollectioniterator 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 interface LongCollectioniterator in interface LongIterableiterator in class AbstractLongCollectionCollection.iterator()public LongListIterator listIterator()
LongListlistIterator in interface java.util.List<java.lang.Long>listIterator in interface LongListList.listIterator()public LongListIterator listIterator(int index)
LongListlistIterator in interface java.util.List<java.lang.Long>listIterator in interface LongListList.listIterator(int)public void size(int size)
LongListpublic AbstractLongList copy()
LongCollectioncopy in interface LongCollectioncopy in interface LongListcopy in class AbstractLongCollection