public abstract class AbstractIntList extends AbstractIntCollection implements IntList
IntList interface.| Constructor and Description |
|---|
AbstractIntList() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(int e)
A Type-Specific implementation of add function that delegates to
List.add(int, Object) |
void |
add(int index,
java.lang.Integer element)
Deprecated.
Please use the corresponding type-specific function instead.
|
boolean |
addAll(java.util.Collection<? extends java.lang.Integer> c)
Deprecated.
Please use the corresponding type-specific function instead.
|
boolean |
addAll(IntCollection c)
A Type-Specific implementation that iterates over the elements and adds them.
|
boolean |
addAll(IntList c)
A Type-Specific implementation that iterates over the elements and adds them.
|
AbstractIntList |
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(int e)
The indexOf implementation iterates over all elements and compares them to the search value.
|
int |
indexOf(java.lang.Object o)
Deprecated.
|
IntIterator |
iterator()
Returns a Type-Specific Iterator to reduce (un)boxing
|
int |
lastIndexOf(int e)
The lastIndexOf implementation iterates over all elements and compares them to the search value.
|
int |
lastIndexOf(java.lang.Object o)
Deprecated.
|
IntListIterator |
listIterator()
A Type-Specific Iterator of listIterator
|
IntListIterator |
listIterator(int index)
A Type-Specific Iterator of listIterator
|
void |
size(int size)
A function to ensure the elements are within the requested size.
|
IntList |
subList(int fromIndex,
int toIndex)
A Type-Specific List of subList
|
boolean |
swapRemoveInt(int e)
A Highly Optimized remove function that removes the desired element.
|
add, contains, contains, containsAll, containsAll, containsAny, containsAny, remInt, remove, removeAll, removeAll, retainAll, retainAll, toIntArray, toIntArrayclear, isEmpty, removeAll, retainAll, size, toArray, toArray, toStringadd, add, addAll, addAll, addElements, addElements, addElements, addIfAbsent, addIfPresent, contains, extractElements, fillBuffer, get, getElements, getElements, getInt, remove, remove, removeElements, removeInt, replaceAll, replaceInts, set, set, sort, sort, spliterator, swapRemove, synchronize, synchronize, unmodifiable, unstableSort, unstableSortaddAll, addAll, addAll, contains, containsAll, containsAny, containsAny, parallelPrimitiveStream, pour, primitiveStream, remIf, remInt, removeAll, removeAll, removeIf, retainAll, retainAll, toIntArray, toIntArrayarrayflatMap, asAsync, count, distinct, filter, findFirst, flatMap, forEach, forEach, forEach, limit, map, matchesAll, matchesAny, matchesNone, peek, pourAsList, pourAsSet, reduce, reduce, sortedpublic boolean add(int e)
List.add(int, Object)add in interface IntCollectionadd in interface IntListe - the element to addList.add(Object)@Deprecated
public void add(int index,
java.lang.Integer element)
This default implementation delegates to the corresponding type-specific function.
add in interface java.util.List<java.lang.Integer>public boolean addAll(IntCollection c)
addAll in interface IntCollectionaddAll in class AbstractIntCollectionc - the elements that wants to be addedpublic boolean addAll(IntList c)
@Deprecated public boolean addAll(java.util.Collection<? extends java.lang.Integer> 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.Integer>addAll in interface java.util.List<java.lang.Integer>addAll in class AbstractIntCollection@Deprecated public int indexOf(java.lang.Object o)
indexOf in interface java.util.List<java.lang.Integer>indexOf in interface IntListo - the value that the index is searched for.@Deprecated public int lastIndexOf(java.lang.Object o)
lastIndexOf in interface java.util.List<java.lang.Integer>lastIndexOf in interface IntListo - the value that the index is searched for.public int indexOf(int e)
public int lastIndexOf(int e)
lastIndexOf in interface IntListe - the value that the index is searched for.public boolean swapRemoveInt(int e)
IntListswapRemoveInt in interface IntListe - the element that should be removedpublic boolean equals(java.lang.Object o)
equals in interface java.util.Collection<java.lang.Integer>equals in interface java.util.List<java.lang.Integer>equals in class java.lang.Objectpublic int hashCode()
hashCode in interface java.util.Collection<java.lang.Integer>hashCode in interface java.util.List<java.lang.Integer>hashCode in class java.lang.Objectpublic IntList subList(int fromIndex, int toIndex)
IntListpublic IntIterator iterator()
IntCollectioniterator in interface java.lang.Iterable<java.lang.Integer>iterator in interface java.util.Collection<java.lang.Integer>iterator in interface java.util.List<java.lang.Integer>iterator in interface IntCollectioniterator in interface IntIterableiterator in class AbstractIntCollectionCollection.iterator()public IntListIterator listIterator()
IntListlistIterator in interface java.util.List<java.lang.Integer>listIterator in interface IntListList.listIterator()public IntListIterator listIterator(int index)
IntListlistIterator in interface java.util.List<java.lang.Integer>listIterator in interface IntListList.listIterator(int)public void size(int size)
IntListpublic AbstractIntList copy()
IntCollectioncopy in interface IntCollectioncopy in interface IntListcopy in class AbstractIntCollection