public abstract class AbstractShortList extends AbstractShortCollection implements ShortList
ShortList interface.ISizeProvider.CollectionSize| Constructor and Description |
|---|
AbstractShortList() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(int index,
java.lang.Short element)
Deprecated.
Please use the corresponding type-specific function instead.
|
boolean |
add(short e)
A Type-Specific implementation of add function that delegates to
List.add(int, Object) |
boolean |
addAll(java.util.Collection<? extends java.lang.Short> c)
Deprecated.
Please use the corresponding type-specific function instead.
|
boolean |
addAll(ShortCollection c)
A Type-Specific implementation that iterates over the elements and adds them.
|
boolean |
addAll(ShortList c)
A Type-Specific implementation that iterates over the elements and adds them.
|
AbstractShortList |
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(java.lang.Object o)
Deprecated.
|
int |
indexOf(short e)
The indexOf implementation iterates over all elements and compares them to the search value.
|
ShortIterator |
iterator()
Returns a Type-Specific Iterator to reduce (un)boxing
|
int |
lastIndexOf(java.lang.Object o)
Deprecated.
|
int |
lastIndexOf(short e)
The lastIndexOf implementation iterates over all elements and compares them to the search value.
|
ShortListIterator |
listIterator()
A Type-Specific Iterator of listIterator
|
ShortListIterator |
listIterator(int index)
A Type-Specific Iterator of listIterator
|
void |
size(int size)
A function to ensure the elements are within the requested size.
|
ShortList |
subList(int fromIndex,
int toIndex)
A Type-Specific List of subList
|
boolean |
swapRemoveShort(short e)
A Highly Optimized remove function that removes the desired element.
|
add, contains, contains, containsAll, containsAll, containsAny, containsAny, remove, removeAll, removeAll, remShort, retainAll, retainAll, toShortArray, toShortArrayclear, isEmpty, removeAll, retainAll, size, toArray, toArray, toStringadd, add, addAll, addAll, addElements, addElements, addElements, addIfAbsent, addIfPresent, contains, extractElements, fillBuffer, forEachIndexed, get, getElements, getElements, getShort, remove, remove, removeElements, removeShort, replaceAll, replaceShorts, set, set, sort, sort, spliterator, swapRemove, synchronize, synchronize, unmodifiable, unstableSort, unstableSortaddAll, addAll, addAll, contains, containsAll, containsAny, containsAny, parallelPrimitiveStream, pour, primitiveStream, remIf, removeAll, removeAll, removeIf, remShort, retainAll, retainAll, toShortArray, toShortArrayarrayflatMap, asAsync, count, distinct, filter, findFirst, flatMap, forEach, forEach, forEach, limit, map, matchesAll, matchesAny, matchesNone, peek, pourAsList, pourAsSet, reduce, reduce, repeat, sortedof, sizepublic boolean add(short e)
List.add(int, Object)add in interface ShortCollectionadd in interface ShortListe - the element to addList.add(Object)@Deprecated
public void add(int index,
java.lang.Short element)
This default implementation delegates to the corresponding type-specific function.
add in interface java.util.List<java.lang.Short>public boolean addAll(ShortCollection c)
addAll in interface ShortCollectionaddAll in class AbstractShortCollectionc - the elements that wants to be addedpublic boolean addAll(ShortList c)
@Deprecated public boolean addAll(java.util.Collection<? extends java.lang.Short> 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.Short>addAll in interface java.util.List<java.lang.Short>addAll in class AbstractShortCollection@Deprecated public int indexOf(java.lang.Object o)
indexOf in interface java.util.List<java.lang.Short>indexOf in interface ShortListo - the value that the index is searched for.@Deprecated public int lastIndexOf(java.lang.Object o)
lastIndexOf in interface java.util.List<java.lang.Short>lastIndexOf in interface ShortListo - the value that the index is searched for.public int indexOf(short e)
public int lastIndexOf(short e)
lastIndexOf in interface ShortListe - the value that the index is searched for.public boolean swapRemoveShort(short e)
ShortListswapRemoveShort in interface ShortListe - the element that should be removedpublic boolean equals(java.lang.Object o)
equals in interface java.util.Collection<java.lang.Short>equals in interface java.util.List<java.lang.Short>equals in class java.lang.Objectpublic int hashCode()
hashCode in interface java.util.Collection<java.lang.Short>hashCode in interface java.util.List<java.lang.Short>hashCode in class java.lang.Objectpublic ShortList subList(int fromIndex, int toIndex)
ShortListpublic ShortIterator iterator()
ShortCollectioniterator in interface java.lang.Iterable<java.lang.Short>iterator in interface java.util.Collection<java.lang.Short>iterator in interface java.util.List<java.lang.Short>iterator in interface ShortCollectioniterator in interface ShortIterableiterator in class AbstractShortCollectionCollection.iterator()public ShortListIterator listIterator()
ShortListlistIterator in interface java.util.List<java.lang.Short>listIterator in interface ShortListList.listIterator()public ShortListIterator listIterator(int index)
ShortListlistIterator in interface java.util.List<java.lang.Short>listIterator in interface ShortListList.listIterator(int)public void size(int size)
ShortListpublic AbstractShortList copy()
ShortCollectioncopy in interface ShortCollectioncopy in interface ShortListcopy in class AbstractShortCollection