public abstract class AbstractShortList extends AbstractShortCollection implements ShortList
ShortList interface.| 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
ShortList.add(int, short) |
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.
|
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.
it is highly suggested not to use this with Primitives because of boxing. But it is still supported because of ObjectComparason that are custom objects and allow to find the contents.
|
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.
it is highly suggested not to use this with Primitives because of boxing. But it is still supported because of ObjectComparason that are custom objects and allow to find the contents.
|
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
|
add, addAll, contains, contains, containsAll, containsAny, containsAny, remove, removeAll, remShort, retainAll, toShortArray, toShortArrayclear, containsAll, isEmpty, removeAll, retainAll, size, toArray, toArray, toStringadd, add, addAll, addAll, addElements, addElements, addElements, contains, extractElements, get, getElements, getElements, getShort, remove, remove, removeElements, removeShort, replaceAll, replaceShorts, set, set, sort, sort, spliterator, unstableSort, unstableSortcontains, containsAll, containsAny, containsAny, parallelPrimitiveStream, primitiveStream, remIf, removeAll, removeIf, remShort, retainAll, toShortArray, toShortArrayforEach, forEachpublic boolean add(short e)
ShortList.add(int, short)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 int indexOf(java.lang.Object o)
@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 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)
ShortList