public interface ShortList extends ShortCollection, java.util.List<java.lang.Short>
| Modifier and Type | Method and Description |
|---|---|
void |
add(int index,
short e)
A Type-Specific add Function to reduce (un)boxing
|
boolean |
add(short e)
A Type-Specific add Function to reduce (un)boxing
|
default boolean |
add(java.lang.Short e)
Deprecated.
Please use the corresponding type-specific function instead.
|
boolean |
addAll(int index,
ShortCollection c)
A Type-Specific addAll Function to reduce (un)boxing
|
boolean |
addAll(int index,
ShortList c)
A Type-Specific and optimized addAll function that allows a faster transfer of elements
|
boolean |
addAll(ShortList c)
A Type-Specific and optimized addAll function that allows a faster transfer of elements
|
default void |
addElements(int from,
short... a)
A function to fast add elements to the list
|
void |
addElements(int from,
short[] a,
int offset,
int length)
A function to fast add elements to the list
|
default void |
addElements(short... a)
A function to fast add elements to the list
|
default boolean |
contains(java.lang.Object o)
Deprecated.
Please use the corresponding type-specific function instead.
|
short[] |
extractElements(int from,
int to)
A function to fast extract elements out of the list, this removes the elements that were fetched.
|
default java.lang.Short |
get(int index)
Deprecated.
Please use the corresponding type-specific function instead.
|
default short[] |
getElements(int from,
short[] a)
A function to fast fetch elements from the list
|
short[] |
getElements(int from,
short[] a,
int offset,
int length)
A function to fast fetch elements from the list
|
short |
getShort(int index)
A Type-Specific get function to reduce (un)boxing
|
default int |
indexOf(java.lang.Object o)
Deprecated.
Please use the corresponding type-specific function instead.
|
int |
indexOf(short e)
A Type-Specific indexOf function to reduce (un)boxing
|
default int |
lastIndexOf(java.lang.Object o)
Deprecated.
Please use the corresponding type-specific function instead.
|
int |
lastIndexOf(short e)
A Type-Specific lastIndexOf function to reduce (un)boxing
|
ShortListIterator |
listIterator()
A Type-Specific Iterator of listIterator
|
ShortListIterator |
listIterator(int index)
A Type-Specific Iterator of listIterator
|
default java.lang.Short |
remove(int index)
Deprecated.
Please use the corresponding type-specific function instead.
|
default boolean |
remove(java.lang.Object o)
Deprecated.
Please use the corresponding type-specific function instead.
|
void |
removeElements(int from,
int to)
a function to fast remove elements from the list.
|
short |
removeShort(int index)
A Type-Specific remove function to reduce (un)boxing
|
default void |
replaceAll(java.util.function.UnaryOperator<java.lang.Short> o)
Deprecated.
Please use the corresponding type-specific function instead.
|
default void |
replaceShorts(java.util.function.IntUnaryOperator o)
A Type-Specific replace function to reduce (un)boxing
|
short |
set(int index,
short e)
A Type-Specific set function to reduce (un)boxing
|
default java.lang.Short |
set(int index,
java.lang.Short e)
Deprecated.
Please use the corresponding type-specific function instead.
|
void |
size(int size)
A function to ensure the elements are within the requested size.
|
default void |
sort(java.util.Comparator<? super java.lang.Short> c)
Deprecated.
Please use the corresponding type-specific function instead.
|
default void |
sort(ShortComparator c)
Sorts the elements specified by the Natural order either by using the Comparator or the elements
|
default ShortSplititerator |
spliterator()
A Type Specific Type Splititerator to reduce boxing/unboxing
|
ShortList |
subList(int from,
int to)
A Type-Specific List of subList
|
default void |
unstableSort(java.util.Comparator<? super java.lang.Short> c)
Deprecated.
Please use the corresponding type-specific function instead.
|
default void |
unstableSort(ShortComparator c)
Sorts the elements specified by the Natural order either by using the Comparator or the elements using a unstable sort
|
addAll, contains, containsAll, containsAny, containsAny, iterator, parallelPrimitiveStream, primitiveStream, remIf, removeAll, removeIf, remShort, retainAll, toShortArray, toShortArrayforEach, forEachboolean add(short e)
add in interface ShortCollectione - the element to addList.add(Object)void add(int index,
short e)
e - the element to addindex - index at which the specified element is to be insertedList.add(int, Object)boolean addAll(int index,
ShortCollection c)
c - the elements that need to be addedindex - index at which the specified elements is to be insertedList.addAll(int, java.util.Collection)boolean addAll(ShortList c)
c - the elements that need to be addedboolean addAll(int index,
ShortList c)
c - the elements that need to be addedindex - index at which the specified elements is to be insertedshort getShort(int index)
index - the index of the value that is requestedjava.lang.IndexOutOfBoundsException - if the index is not within the list rangeList.get(int)short set(int index,
short e)
index - index of the element to replacee - element to be stored at the specified positionjava.lang.IndexOutOfBoundsException - if the index is not within the list rangeList.set(int, Object)short removeShort(int index)
index - the index of the element to be removedList.remove(int)int indexOf(short e)
e - the element that is searched forint lastIndexOf(short e)
e - the element that is searched fordefault void replaceShorts(java.util.function.IntUnaryOperator o)
o - the action to replace the valuesjava.lang.NullPointerException - if o is nulldefault void addElements(short... a)
a - the elements that should be addedjava.lang.IndexOutOfBoundsException - if from is outside of the lists rangedefault void addElements(int from,
short... a)
from - the index where the elements should be added into the lista - the elements that should be addedjava.lang.IndexOutOfBoundsException - if from is outside of the lists rangevoid addElements(int from,
short[] a,
int offset,
int length)
from - the index where the elements should be added into the lista - the elements that should be addedoffset - the start index of the array should be read fromlength - how many elements should be read fromjava.lang.IndexOutOfBoundsException - if from is outside of the lists rangejava.lang.IllegalStateException - if offset or length are smaller then 0 or exceed the array lengthdefault short[] getElements(int from,
short[] a)
from - index where the list should be fetching elements froma - the array where the values should be inserted tojava.lang.NullPointerException - if the array is nulljava.lang.IndexOutOfBoundsException - if from is outside of the lists rangejava.lang.IllegalStateException - if offset or length are smaller then 0 or exceed the array lengthshort[] getElements(int from,
short[] a,
int offset,
int length)
from - index where the list should be fetching elements froma - the array where the values should be inserted tooffset - the startIndex of where the array should be written tolength - the number of elements the values should be fetched fromjava.lang.NullPointerException - if the array is nulljava.lang.IndexOutOfBoundsException - if from is outside of the lists rangejava.lang.IllegalStateException - if offset or length are smaller then 0 or exceed the array lengthvoid removeElements(int from,
int to)
from - the start index of where the elements should be removed from (inclusive)to - the end index of where the elements should be removed to (exclusive)short[] extractElements(int from,
int to)
from - the start index of where the elements should be fetched from (inclusive)to - the end index of where the elements should be fetched to (exclusive)@Deprecated default void sort(java.util.Comparator<? super java.lang.Short> c)
This default implementation delegates to the corresponding type-specific function.
sort in interface java.util.List<java.lang.Short>default void sort(ShortComparator c)
c - the sorter of the elements, can be nullList.sort(Comparator),
ShortArrays.stableSort(short[], ShortComparator)@Deprecated default void unstableSort(java.util.Comparator<? super java.lang.Short> c)
This default implementation delegates to the corresponding type-specific function.
c - the sorter of the elements, can be nulldefault void unstableSort(ShortComparator c)
c - the sorter of the elements, can be nullList.sort(Comparator),
ShortArrays.unstableSort(short[], ShortComparator)ShortListIterator listIterator()
listIterator in interface java.util.List<java.lang.Short>List.listIterator()ShortListIterator listIterator(int index)
listIterator in interface java.util.List<java.lang.Short>List.listIterator(int)ShortList subList(int from, int to)
subList in interface java.util.List<java.lang.Short>List.subList(int, int)void size(int size)
size - the requested amount of elements/room for elements@Deprecated default boolean add(java.lang.Short e)
This default implementation delegates to the corresponding type-specific function.
This default implementation delegates to the corresponding type-specific function.
add in interface java.util.Collection<java.lang.Short>add in interface java.util.List<java.lang.Short>add in interface ShortCollection@Deprecated default java.lang.Short get(int index)
This default implementation delegates to the corresponding type-specific function.
get in interface java.util.List<java.lang.Short>@Deprecated
default java.lang.Short set(int index,
java.lang.Short e)
This default implementation delegates to the corresponding type-specific function.
set in interface java.util.List<java.lang.Short>@Deprecated default int indexOf(java.lang.Object o)
This default implementation delegates to the corresponding type-specific function.
indexOf in interface java.util.List<java.lang.Short>@Deprecated default int lastIndexOf(java.lang.Object o)
This default implementation delegates to the corresponding type-specific function.
lastIndexOf in interface java.util.List<java.lang.Short>@Deprecated default boolean contains(java.lang.Object o)
This default implementation delegates to the corresponding type-specific function.
This default implementation delegates to the corresponding type-specific function.
contains in interface java.util.Collection<java.lang.Short>contains in interface java.util.List<java.lang.Short>contains in interface ShortCollection@Deprecated default boolean remove(java.lang.Object o)
This default implementation delegates to the corresponding type-specific function.
This default implementation delegates to the corresponding type-specific function.
remove in interface java.util.Collection<java.lang.Short>remove in interface java.util.List<java.lang.Short>remove in interface ShortCollection@Deprecated default java.lang.Short remove(int index)
This default implementation delegates to the corresponding type-specific function.
remove in interface java.util.List<java.lang.Short>@Deprecated default void replaceAll(java.util.function.UnaryOperator<java.lang.Short> o)
This default implementation delegates to the corresponding type-specific function.
replaceAll in interface java.util.List<java.lang.Short>default ShortSplititerator spliterator()
spliterator in interface java.util.Collection<java.lang.Short>spliterator in interface java.lang.Iterable<java.lang.Short>spliterator in interface java.util.List<java.lang.Short>spliterator in interface ShortCollectionspliterator in interface ShortIterable