public static class LongBigLists.Singleton extends AbstractLongBigList implements Serializable, Cloneable
This class may be useful to implement your own in case you subclass a type-specific big list.
AbstractLongBigList.LongSubList| Modifier and Type | Method and Description |
|---|---|
boolean |
addAll(Collection<? extends Long> c)
This implementation delegates to the type-specific version of
BigList.addAll(long, Collection). |
boolean |
addAll(LongBigList 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(LongCollection c)
Adds all elements of the given type-specific collection to this collection.
|
boolean |
addAll(long i,
Collection<? extends Long> c)
Adds all of the elements in the specified collection to this list (optional operation).
|
boolean |
addAll(long i,
LongBigList 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,
LongCollection c)
Inserts all of the elements in the specified type-specific collection into this type-specific big list at the specified position (optional operation).
|
void |
clear()
This implementation delegates to
AbstractLongBigList.removeElements(long, long). |
Object |
clone() |
boolean |
contains(long k)
Returns true if this list contains the specified element.
|
long |
getLong(long i)
Returns the element at the specified position.
|
LongBigListIterator |
listIterator()
Returns a type-specific big-list iterator on this type-specific big list.
|
LongBigListIterator |
listIterator(long i)
Returns a type-specific list iterator on this type-specific big list starting at a given index.
|
boolean |
rem(long k)
Removes a single instance of the specified element from this collection, if it is present (optional operation).
|
boolean |
removeAll(Collection<?> c) |
boolean |
removeAll(LongCollection c)
Remove from this collection all elements in the given type-specific collection.
|
long |
removeLong(long i)
Removes the element at the specified position.
|
boolean |
retainAll(Collection<?> c) |
boolean |
retainAll(LongCollection c)
Retains in this collection only elements from the given type-specific collection.
|
long |
size64()
Returns the size of this data structure as a long.
|
LongBigList |
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. |
long[] |
toLongArray()
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, peekLong, pop, popLong, push, push, remove, removeElements, set, set, size, size, top, topLong, toStringadd, contains, containsAll, remove, toArray, toLongArraycontainsAll, isEmpty, toArray, toArrayadd, contains, containsAll, remove, removeIf, removeIf, toArray, toLongArraycontainsAll, isEmpty, parallelStream, spliterator, stream, toArray, toArrayforEach, forEachpublic long getLong(long i)
LongBigListgetLong in interface LongBigListBigList.get(long)public boolean rem(long k)
AbstractLongBigListThis implementation delegates to indexOf().
rem in interface LongCollectionrem in class AbstractLongBigListCollection.remove(Object)public long removeLong(long i)
AbstractLongBigListThis implementation always throws an UnsupportedOperationException.
removeLong in interface LongBigListremoveLong in class AbstractLongBigListBigList.remove(long)public boolean contains(long k)
AbstractLongBigListThis implementation delegates to indexOf().
contains in interface LongCollectioncontains in class AbstractLongBigListCollection.contains(Object)public long[] toLongArray()
LongCollectiontoLongArray in interface LongCollectiontoLongArray in class AbstractLongCollectionCollection.toArray()public LongBigListIterator listIterator()
AbstractLongBigListNote that this specification strengthens the one given in BigList.listIterator().
This implementation delegates to listIterator(0).
listIterator in interface BigList<Long>listIterator in interface LongBigListlistIterator in class AbstractLongBigListBigList.listIterator()public LongBigListIterator listIterator(long i)
AbstractLongBigListNote that this specification strengthens the one given in BigList.listIterator(long).
This implementation is based on the random-access methods.
listIterator in interface BigList<Long>listIterator in interface LongBigListlistIterator in class AbstractLongBigListi - index of first element to be returned from the big-list iterator.BigList.listIterator(long)public LongBigList subList(long from, long to)
LongBigListfrom, inclusive, to the index to, exclusive.
Note that this specification strengthens the one given in BigList.subList(long,long).
subList in interface BigList<Long>subList in interface LongBigListsubList in class AbstractLongBigListfrom - the starting element (inclusive).to - the ending element (exclusive).BigList.subList(long,long)public boolean addAll(long i,
Collection<? extends Long> c)
AbstractLongBigListaddAll in interface BigList<Long>addAll in class AbstractLongBigListi - 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(Collection<? extends Long> c)
AbstractLongBigListThis implementation delegates to the type-specific version of BigList.addAll(long, Collection).
addAll in interface Collection<Long>addAll in class AbstractLongBigListpublic boolean removeAll(Collection<?> c)
removeAll in interface Collection<Long>removeAll in class AbstractCollection<Long>public boolean retainAll(Collection<?> c)
retainAll in interface Collection<Long>retainAll in class AbstractCollection<Long>public boolean addAll(LongBigList c)
AbstractLongBigListThis implementation delegates to the type-specific list version of AbstractLongBigList.addAll(long, Collection).
addAll in interface LongBigListaddAll in class AbstractLongBigListList.addAll(int,java.util.Collection)public boolean addAll(long i,
LongBigList c)
AbstractLongBigListThis implementation delegates to the type-specific version of AbstractLongBigList.addAll(long, Collection).
addAll in interface LongBigListaddAll in class AbstractLongBigListList.addAll(int,java.util.Collection)public boolean addAll(long i,
LongCollection c)
AbstractLongBigListThis implementation delegates to the type-specific version of AbstractLongBigList.addAll(long, Collection).
addAll in interface LongBigListaddAll in class AbstractLongBigListList.addAll(int,java.util.Collection)public boolean addAll(LongCollection c)
AbstractLongBigListThis implementation delegates to the type-specific version of AbstractLongBigList.addAll(long, Collection).
addAll in interface LongCollectionaddAll in class AbstractLongBigListc - a type-specific collection.true if this collection changed as a result of the call.Collection.addAll(Collection)public boolean removeAll(LongCollection c)
LongCollectionremoveAll in interface LongCollectionremoveAll in class AbstractLongCollectionc - a type-specific collection.true if this collection changed as a result of the call.Collection.removeAll(Collection)public boolean retainAll(LongCollection c)
LongCollectionretainAll in interface LongCollectionretainAll in class AbstractLongCollectionc - a type-specific collection.true if this collection changed as a result of the call.Collection.retainAll(Collection)public void clear()
AbstractLongBigListThis implementation delegates to AbstractLongBigList.removeElements(long, long).
clear in interface Collection<Long>clear in class AbstractLongBigListpublic long size64()
Size64