public static class IntBigLists.Singleton extends AbstractIntBigList implements Serializable, Cloneable
This class may be useful to implement your own in case you subclass a type-specific big list.
AbstractIntBigList.IntSubList| Modifier | Constructor and Description |
|---|---|
protected |
Singleton(int element) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addAll(Collection<? extends Integer> c) |
boolean |
addAll(IntBigList 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(IntCollection c)
Adds all elements of the given type-specific collection to this collection.
|
boolean |
addAll(long i,
Collection<? extends Integer> c)
Adds all of the elements in the specified collection to this list (optional operation).
|
boolean |
addAll(long i,
IntBigList 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,
IntCollection 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() |
Object |
clone() |
boolean |
contains(int k)
Returns true if this list contains the specified element.
|
int |
getInt(long i)
Returns the element at the specified position.
|
IntBigListIterator |
listIterator()
Returns a type-specific big-list iterator on this type-specific big list.
|
IntBigListIterator |
listIterator(long i)
Returns a type-specific list iterator on this type-specific big list starting at a given index.
|
boolean |
rem(int k)
Removes a single instance of the specified element from this collection, if it is present (optional operation).
|
boolean |
removeAll(Collection<?> c) |
boolean |
removeAll(IntCollection c)
Remove from this collection all elements in the given type-specific collection.
|
int |
removeInt(long i)
Removes the element at the specified position.
|
boolean |
retainAll(Collection<?> c) |
boolean |
retainAll(IntCollection 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.
|
IntBigList |
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. |
int[] |
toIntArray()
Returns a primitive type array containing the items of this collection.
|
add, add, add, addElements, addElements, compareTo, ensureIndex, ensureRestrictedIndex, equals, get, getElements, hashCode, indexOf, indexOf, iterator, lastIndexOf, lastIndexOf, peek, peekInt, pop, popInt, push, push, remove, removeElements, set, set, size, size, top, topInt, toStringadd, contains, containsAll, remove, toArray, toIntArraycontainsAll, isEmpty, toArray, toArrayfinalize, getClass, notify, notifyAll, wait, wait, waitadd, contains, containsAll, remove, removeIf, removeIf, toArray, toIntArraycontainsAll, isEmpty, parallelStream, spliterator, stream, toArray, toArrayforEach, forEachpublic int getInt(long i)
IntBigListgetInt in interface IntBigListBigList.get(long)public boolean rem(int k)
AbstractIntBigListThis implementation delegates to indexOf().
rem in interface IntCollectionrem in class AbstractIntBigListCollection.remove(Object)public int removeInt(long i)
AbstractIntBigListThis implementation always throws an UnsupportedOperationException.
removeInt in interface IntBigListremoveInt in class AbstractIntBigListBigList.remove(long)public boolean contains(int k)
AbstractIntBigListThis implementation delegates to indexOf().
contains in interface IntCollectioncontains in class AbstractIntBigListCollection.contains(Object)public int[] toIntArray()
IntCollectiontoIntArray in interface IntCollectiontoIntArray in class AbstractIntCollectionCollection.toArray()public IntBigListIterator listIterator()
AbstractIntBigListNote that this specification strengthens the one given in BigList.listIterator().
This implementation delegates to listIterator(0).
listIterator in interface BigList<Integer>listIterator in interface IntBigListlistIterator in class AbstractIntBigListBigList.listIterator()public IntBigListIterator listIterator(long i)
AbstractIntBigListNote that this specification strengthens the one given in BigList.listIterator(long).
This implementation is based on the random-access methods.
listIterator in interface BigList<Integer>listIterator in interface IntBigListlistIterator in class AbstractIntBigListi - index of first element to be returned from the big-list iterator.BigList.listIterator(long)public IntBigList subList(long from, long to)
IntBigListfrom, inclusive, to the index to, exclusive.
Note that this specification strengthens the one given in BigList.subList(long,long).
subList in interface BigList<Integer>subList in interface IntBigListsubList in class AbstractIntBigListfrom - the starting element (inclusive).to - the ending element (exclusive).BigList.subList(long,long)public boolean addAll(long i,
Collection<? extends Integer> c)
AbstractIntBigListaddAll in interface BigList<Integer>addAll in class AbstractIntBigListi - 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 Integer> c)
AbstractIntBigListThis implementation delegates to the type-specific version of BigList.addAll(long, Collection).
addAll in interface Collection<Integer>addAll in class AbstractIntBigListpublic boolean removeAll(Collection<?> c)
removeAll in interface Collection<Integer>removeAll in class AbstractCollection<Integer>public boolean retainAll(Collection<?> c)
retainAll in interface Collection<Integer>retainAll in class AbstractCollection<Integer>public boolean addAll(IntBigList c)
AbstractIntBigListThis implementation delegates to the type-specific list version of AbstractIntBigList.addAll(long, Collection).
addAll in interface IntBigListaddAll in class AbstractIntBigListList.addAll(int,java.util.Collection)public boolean addAll(long i,
IntBigList c)
AbstractIntBigListThis implementation delegates to the type-specific version of AbstractIntBigList.addAll(long, Collection).
addAll in interface IntBigListaddAll in class AbstractIntBigListList.addAll(int,java.util.Collection)public boolean addAll(long i,
IntCollection c)
AbstractIntBigListThis implementation delegates to the type-specific version of AbstractIntBigList.addAll(long, Collection).
addAll in interface IntBigListaddAll in class AbstractIntBigListList.addAll(int,java.util.Collection)public boolean addAll(IntCollection c)
AbstractIntBigListThis implementation delegates to the type-specific version of AbstractIntBigList.addAll(long, Collection).
addAll in interface IntCollectionaddAll in class AbstractIntBigListc - a type-specific collection.true if this collection changed as a result of the call.Collection.addAll(Collection)public boolean removeAll(IntCollection c)
IntCollectionremoveAll in interface IntCollectionremoveAll in class AbstractIntCollectionc - a type-specific collection.true if this collection changed as a result of the call.Collection.removeAll(Collection)public boolean retainAll(IntCollection c)
IntCollectionretainAll in interface IntCollectionretainAll in class AbstractIntCollectionc - a type-specific collection.true if this collection changed as a result of the call.Collection.retainAll(Collection)public void clear()
AbstractIntBigListThis implementation delegates to AbstractIntBigList.removeElements(long, long).
clear in interface Collection<Integer>clear in class AbstractIntBigListpublic long size64()
Size64Copyright © 2020. All rights reserved.