public static class IntBigLists.Singleton extends AbstractIntBigList 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.
AbstractIntBigList.IntRandomAccessSubList, AbstractIntBigList.IntSubList
Modifier and Type | Method and Description |
---|---|
boolean |
addAll(java.util.Collection<? extends java.lang.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,
java.util.Collection<? extends java.lang.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() |
java.lang.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.
|
long |
indexOf(int 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.
|
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(java.util.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(java.util.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.
|
IntSpliterator |
spliterator()
Returns a type-specific spliterator on the elements of this big-list.
|
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, equals, forEach, get, getElements, hashCode, indexOf, iterator, lastIndexOf, lastIndexOf, peek, peekInt, pop, popInt, push, push, remove, removeElements, set, set, setElements, size, size, top, topInt, toString
add, contains, containsAll, containsAll, forEach, remove, removeIf, toArray, toIntArray
addAll, addAll, setElements, setElements
add, contains, containsAll, intIterator, intParallelStream, intSpliterator, intStream, parallelStream, remove, removeIf, removeIf, removeIf, stream, toArray, toIntArray
forEach, forEach
public int getInt(long i)
IntBigList
getInt
in interface IntBigList
BigList.get(long)
public boolean rem(int k)
AbstractIntBigList
rem
in interface IntCollection
rem
in class AbstractIntBigList
Collection.remove(Object)
public int removeInt(long i)
AbstractIntBigList
removeInt
in interface IntBigList
removeInt
in class AbstractIntBigList
BigList.remove(long)
public boolean contains(int k)
AbstractIntBigList
contains
in interface IntCollection
contains
in class AbstractIntBigList
Collection.contains(Object)
public long indexOf(int k)
IntBigList
indexOf
in interface IntBigList
indexOf
in class AbstractIntBigList
BigList.indexOf(Object)
public int[] toIntArray()
IntCollection
toIntArray
in interface IntCollection
toIntArray
in class AbstractIntCollection
Collection.toArray()
public IntBigListIterator listIterator()
AbstractIntBigList
listIterator
in interface BigList<java.lang.Integer>
listIterator
in interface IntBigList
listIterator
in class AbstractIntBigList
BigList.listIterator()
public IntBigListIterator listIterator(long i)
AbstractIntBigList
listIterator
in interface BigList<java.lang.Integer>
listIterator
in interface IntBigList
listIterator
in class AbstractIntBigList
i
- index of first element to be returned from the big-list iterator.BigList.listIterator(long)
public IntSpliterator spliterator()
IntBigList
BigList spliterators must report at least Spliterator.SIZED
and Spliterator.ORDERED
.
See List.spliterator()
for more documentation on the requirements
of the returned spliterator (despite BigList
not being a List
, most of the
same requirements apply.
spliterator
in interface IntBigList
spliterator
in interface IntCollection
spliterator
in interface IntIterable
spliterator
in interface java.lang.Iterable<java.lang.Integer>
spliterator
in interface java.util.Collection<java.lang.Integer>
public IntBigList subList(long from, long to)
IntBigList
from
, inclusive, to the index to
, exclusive.subList
in interface BigList<java.lang.Integer>
subList
in interface IntBigList
subList
in class AbstractIntBigList
from
- the starting element (inclusive).to
- the ending element (exclusive).BigList.subList(long,long)
public boolean addAll(long i, java.util.Collection<? extends java.lang.Integer> c)
AbstractIntBigList
addAll
in interface BigList<java.lang.Integer>
addAll
in class AbstractIntBigList
i
- 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.Integer> c)
AbstractIntBigList
addAll
in interface java.util.Collection<java.lang.Integer>
addAll
in class AbstractIntBigList
public boolean removeAll(java.util.Collection<?> c)
AbstractIntCollection
removeAll
in interface java.util.Collection<java.lang.Integer>
removeAll
in class AbstractIntCollection
public boolean retainAll(java.util.Collection<?> c)
AbstractIntCollection
retainAll
in interface java.util.Collection<java.lang.Integer>
retainAll
in class AbstractIntCollection
public boolean addAll(IntBigList c)
IntBigList
addAll
in interface IntBigList
Collection.addAll(Collection)
public boolean addAll(long i, IntBigList c)
IntBigList
addAll
in interface IntBigList
BigList.addAll(long,Collection)
public boolean addAll(long i, IntCollection c)
AbstractIntBigList
addAll
in interface IntBigList
addAll
in class AbstractIntBigList
List.addAll(int,java.util.Collection)
public boolean addAll(IntCollection c)
AbstractIntBigList
addAll
in interface IntCollection
addAll
in class AbstractIntBigList
c
- a type-specific collection.true
if this collection changed as a result of the call.Collection.addAll(Collection)
public boolean removeAll(IntCollection c)
IntCollection
removeAll
in interface IntCollection
removeAll
in class AbstractIntCollection
c
- a type-specific collection.true
if this collection changed as a result of the call.Collection.removeAll(Collection)
public boolean retainAll(IntCollection c)
IntCollection
retainAll
in interface IntCollection
retainAll
in class AbstractIntCollection
c
- a type-specific collection.true
if this collection changed as a result of the call.Collection.retainAll(Collection)
public void clear()
AbstractIntBigList
clear
in interface java.util.Collection<java.lang.Integer>
clear
in class AbstractIntBigList
public long size64()
Size64
public java.lang.Object clone()
clone
in class java.lang.Object