BigList<java.lang.Short>, java.util.Collection<java.lang.Short>, java.lang.Comparable<BigList<? extends java.lang.Short>>, java.lang.Iterable<java.lang.Short>, ShortCollection, ShortIterable, Size64AbstractShortBigList, AbstractShortBigList.ShortSubList, ShortBigArrayBigList, ShortBigLists.EmptyBigList, ShortBigLists.ListBigList, ShortBigLists.Singleton, ShortBigLists.SynchronizedBigList, ShortBigLists.UnmodifiableBigListpublic interface ShortBigList extends BigList<java.lang.Short>, ShortCollection, Size64, java.lang.Comparable<BigList<? extends java.lang.Short>>
BigList; provides some additional methods that use
polymorphism to avoid (un)boxing.
Additionally, this interface strengthens iterator(),
listIterator(), listIterator(long) and
subList(long,long).
Besides polymorphic methods, this interfaces specifies methods to copy into an array or remove contiguous sublists. Although the abstract implementation of this interface provides simple, one-by-one implementations of these methods, it is expected that concrete implementation override them with optimized versions.
List| Modifier and Type | Method | Description |
|---|---|---|
void |
add(long index,
short key) |
Inserts the specified element at the specified position in this type-specific
big list (optional operation).
|
void |
add(long index,
java.lang.Short key) |
Deprecated.
Please use the corresponding type-specific method instead.
|
boolean |
addAll(long index,
ShortBigList c) |
Inserts all of the elements in the specified type-specific big list into this
type-specific big list at the specified position (optional operation).
|
boolean |
addAll(long index,
ShortCollection c) |
Inserts all of the elements in the specified type-specific collection into
this type-specific big list at the specified position (optional operation).
|
boolean |
addAll(ShortBigList c) |
Appends all of the elements in the specified type-specific big list to the
end of this type-specific big list (optional operation).
|
void |
addElements(long index,
short[][] a) |
Add (hopefully quickly) elements to this type-specific big list.
|
void |
addElements(long index,
short[][] a,
long offset,
long length) |
Add (hopefully quickly) elements to this type-specific big list.
|
java.lang.Short |
get(long index) |
Deprecated.
Please use the corresponding type-specific method instead.
|
void |
getElements(long from,
short[][] a,
long offset,
long length) |
Copies (hopefully quickly) elements of this type-specific big list into the
given big array.
|
short |
getShort(long index) |
Returns the element at the specified position.
|
long |
indexOf(short k) |
Returns the index of the first occurrence of the specified element in this
type-specific big list, or -1 if this big list does not contain the element.
|
long |
indexOf(java.lang.Object o) |
Deprecated.
Please use the corresponding type-specific method instead.
|
ShortBigListIterator |
iterator() |
Returns a type-specific iterator on the elements of this list.
|
long |
lastIndexOf(short k) |
Returns the index of the last occurrence of the specified element in this
type-specific big list, or -1 if this big list does not contain the element.
|
long |
lastIndexOf(java.lang.Object o) |
Deprecated.
Please use the corresponding type-specific method instead.
|
ShortBigListIterator |
listIterator() |
Returns a type-specific big-list iterator on this type-specific big list.
|
ShortBigListIterator |
listIterator(long index) |
Returns a type-specific list iterator on this type-specific big list starting
at a given index.
|
java.lang.Short |
remove(long index) |
Deprecated.
Please use the corresponding type-specific method instead.
|
void |
removeElements(long from,
long to) |
Removes (hopefully quickly) elements of this type-specific big list.
|
short |
removeShort(long index) |
Removes the element at the specified position.
|
short |
set(long index,
short k) |
Replaces the element at the specified position in this big list with the
specified element (optional operation).
|
java.lang.Short |
set(long index,
java.lang.Short k) |
Deprecated.
Please use the corresponding type-specific method instead.
|
ShortBigList |
subList(long from,
long to) |
Returns a type-specific view of the portion of this type-specific big list
from the index
from, inclusive, to the index to, exclusive. |
addAll, clear, containsAll, equals, hashCode, isEmpty, parallelStream, removeAll, retainAll, spliterator, stream, toArray, toArrayadd, add, addAll, contains, contains, containsAll, rem, remove, removeAll, removeIf, removeIf, retainAll, toArray, toShortArray, toShortArrayforEach, forEachShortBigListIterator iterator()
Note that this specification strengthens the one given in
Collection.iterator().
iterator in interface java.util.Collection<java.lang.Short>iterator in interface java.lang.Iterable<java.lang.Short>iterator in interface ShortCollectioniterator in interface ShortIterableCollection.iterator()ShortBigListIterator listIterator()
Note that this specification strengthens the one given in
BigList.listIterator().
listIterator in interface BigList<java.lang.Short>BigList.listIterator()ShortBigListIterator listIterator(long index)
Note that this specification strengthens the one given in
BigList.listIterator(long).
listIterator in interface BigList<java.lang.Short>index - index of first element to be returned from the big-list iterator.BigList.listIterator(long)ShortBigList subList(long from, long to)
from, inclusive, to the index to, exclusive.
Note that this specification strengthens the one given in
BigList.subList(long,long).
subList in interface BigList<java.lang.Short>from - the starting element (inclusive).to - the ending element (exclusive).BigList.subList(long,long)void getElements(long from,
short[][] a,
long offset,
long length)
from - the start index (inclusive).a - the destination big array.offset - the offset into the destination big array where to store the first
element copied.length - the number of elements to be copied.void removeElements(long from,
long to)
from - the start index (inclusive).to - the end index (exclusive).void addElements(long index,
short[][] a)
index - the index at which to add elements.a - the big array containing the elements.void addElements(long index,
short[][] a,
long offset,
long length)
index - the index at which to add elements.a - the big array containing the elements.offset - the offset of the first element to add.length - the number of elements to add.void add(long index,
short key)
BigList.add(long,Object)boolean addAll(long index,
ShortCollection c)
List.addAll(int,java.util.Collection)boolean addAll(long index,
ShortBigList c)
List.addAll(int,java.util.Collection)boolean addAll(ShortBigList c)
List.addAll(int,java.util.Collection)short getShort(long index)
BigList.get(long)short removeShort(long index)
BigList.remove(long)short set(long index,
short k)
BigList.set(long,Object)long indexOf(short k)
BigList.indexOf(Object)long lastIndexOf(short k)
BigList.lastIndexOf(Object)@Deprecated
void add(long index,
java.lang.Short key)
@Deprecated java.lang.Short get(long index)
@Deprecated long indexOf(java.lang.Object o)
@Deprecated long lastIndexOf(java.lang.Object o)
lastIndexOf in interface BigList<java.lang.Short>o - the object to search for.List.lastIndexOf(Object)@Deprecated java.lang.Short remove(long index)
@Deprecated
java.lang.Short set(long index,
java.lang.Short k)