BigList<java.lang.Short>, ShortBigList, ShortCollection, ShortIterable, ShortStack, Size64, Stack<java.lang.Short>, java.io.Serializable, java.lang.Cloneable, java.lang.Comparable<BigList<? extends java.lang.Short>>, java.lang.Iterable<java.lang.Short>, java.util.Collection<java.lang.Short>public static class ShortBigLists.Singleton extends AbstractShortBigList implements java.io.Serializable, java.lang.Cloneable
This class may be useful to implement your own in case you subclass a type-specific big list.
AbstractShortBigList.ShortSubList| Modifier and Type | Method | Description |
|---|---|---|
boolean |
addAll(long i,
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 i,
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(long i,
java.util.Collection<? extends java.lang.Short> c) |
Adds all of the elements in the specified collection to this list (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).
|
boolean |
addAll(ShortCollection c) |
Adds all elements of the given type-specific collection to this collection.
|
boolean |
addAll(java.util.Collection<? extends java.lang.Short> c) |
|
void |
clear() |
|
java.lang.Object |
clone() |
|
boolean |
contains(short k) |
Returns true if this list contains the specified element.
|
short |
getShort(long i) |
Returns the element at the specified position.
|
ShortBigListIterator |
listIterator() |
Returns a type-specific big-list iterator on this type-specific big list.
|
ShortBigListIterator |
listIterator(long i) |
Returns a type-specific list iterator on this type-specific big list starting
at a given index.
|
boolean |
rem(short k) |
Removes a single instance of the specified element from this collection, if
it is present (optional operation).
|
boolean |
removeAll(ShortCollection c) |
Remove from this collection all elements in the given type-specific
collection.
|
boolean |
removeAll(java.util.Collection<?> c) |
|
short |
removeShort(long i) |
Removes the element at the specified position.
|
boolean |
retainAll(ShortCollection c) |
Retains in this collection only elements from the given type-specific
collection.
|
boolean |
retainAll(java.util.Collection<?> c) |
|
long |
size64() |
Returns the size of this data structure as a long.
|
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. |
short[] |
toShortArray() |
Returns a primitive type array containing the items of this collection.
|
add, add, add, addElements, addElements, compareTo, equals, get, getElements, hashCode, indexOf, indexOf, iterator, lastIndexOf, lastIndexOf, peek, peekShort, pop, popShort, push, push, remove, removeElements, set, set, size, size, top, topShort, toStringadd, contains, containsAll, remove, toArray, toShortArraycontainsAll, isEmpty, parallelStream, spliterator, stream, toArray, toArrayadd, contains, containsAll, remove, removeIf, removeIf, toArray, toShortArrayforEach, forEachpublic short getShort(long i)
ShortBigListgetShort in interface ShortBigListBigList.get(long)public boolean rem(short k)
AbstractShortBigList
This implementation delegates to indexOf().
rem in interface ShortCollectionrem in class AbstractShortBigListCollection.remove(Object)public short removeShort(long i)
AbstractShortBigList
This implementation always throws an UnsupportedOperationException.
removeShort in interface ShortBigListremoveShort in class AbstractShortBigListBigList.remove(long)public boolean contains(short k)
AbstractShortBigList
This implementation delegates to indexOf().
contains in interface ShortCollectioncontains in class AbstractShortBigListCollection.contains(Object)public short[] toShortArray()
ShortCollectiontoShortArray in interface ShortCollectiontoShortArray in class AbstractShortCollectionCollection.toArray()public ShortBigListIterator listIterator()
AbstractShortBigList
Note that this specification strengthens the one given in
BigList.listIterator().
This implementation delegates to listIterator(0).
listIterator in interface BigList<java.lang.Short>listIterator in interface ShortBigListlistIterator in class AbstractShortBigListBigList.listIterator()public ShortBigListIterator listIterator(long i)
AbstractShortBigList
Note that this specification strengthens the one given in
BigList.listIterator(long).
This implementation is based on the random-access methods.
listIterator in interface BigList<java.lang.Short>listIterator in interface ShortBigListlistIterator in class AbstractShortBigListi - index of first element to be returned from the big-list iterator.BigList.listIterator(long)public ShortBigList subList(long from, long to)
ShortBigListfrom, 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>subList in interface ShortBigListsubList in class AbstractShortBigListfrom - the starting element (inclusive).to - the ending element (exclusive).BigList.subList(long,long)public boolean addAll(long i,
java.util.Collection<? extends java.lang.Short> c)
AbstractShortBigListaddAll in interface BigList<java.lang.Short>addAll in class AbstractShortBigListi - index at which to insert the first element from the specified collection.c - collection containing elements to be added to this big list.true if this big list changed as a result of the callList.addAll(int, Collection)public boolean addAll(java.util.Collection<? extends java.lang.Short> c)
AbstractShortBigList
This implementation delegates to the type-specific version of
BigList.addAll(long, Collection).
addAll in interface java.util.Collection<java.lang.Short>addAll in class AbstractShortBigListpublic boolean removeAll(java.util.Collection<?> c)
removeAll in interface java.util.Collection<java.lang.Short>removeAll in class java.util.AbstractCollection<java.lang.Short>public boolean retainAll(java.util.Collection<?> c)
retainAll in interface java.util.Collection<java.lang.Short>retainAll in class java.util.AbstractCollection<java.lang.Short>public boolean addAll(ShortBigList c)
AbstractShortBigList
This implementation delegates to the type-specific list version of
AbstractShortBigList.addAll(long, Collection).
addAll in interface ShortBigListaddAll in class AbstractShortBigListList.addAll(int,java.util.Collection)public boolean addAll(long i,
ShortBigList c)
AbstractShortBigList
This implementation delegates to the type-specific version of
AbstractShortBigList.addAll(long, Collection).
addAll in interface ShortBigListaddAll in class AbstractShortBigListList.addAll(int,java.util.Collection)public boolean addAll(long i,
ShortCollection c)
AbstractShortBigList
This implementation delegates to the type-specific version of
AbstractShortBigList.addAll(long, Collection).
addAll in interface ShortBigListaddAll in class AbstractShortBigListList.addAll(int,java.util.Collection)public boolean addAll(ShortCollection c)
AbstractShortBigList
This implementation delegates to the type-specific version of
AbstractShortBigList.addAll(long, Collection).
addAll in interface ShortCollectionaddAll in class AbstractShortBigListc - a type-specific collection.true if this collection changed as a result of the call.Collection.addAll(Collection)public boolean removeAll(ShortCollection c)
ShortCollectionremoveAll in interface ShortCollectionremoveAll in class AbstractShortCollectionc - a type-specific collection.true if this collection changed as a result of the call.Collection.removeAll(Collection)public boolean retainAll(ShortCollection c)
ShortCollectionretainAll in interface ShortCollectionretainAll in class AbstractShortCollectionc - a type-specific collection.true if this collection changed as a result of the call.Collection.retainAll(Collection)public void clear()
AbstractShortBigList
This implementation delegates to AbstractShortBigList.removeElements(long, long).
clear in interface java.util.Collection<java.lang.Short>clear in class AbstractShortBigListpublic long size64()
Size64public java.lang.Object clone()