public static class AbstractIntBigList.IntSubList extends AbstractIntBigList implements java.io.Serializable
AbstractIntBigList.IntRandomAccessSubList, AbstractIntBigList.IntSubList| Modifier and Type | Field and Description |
|---|---|
protected long |
from
Initial (inclusive) index of this sublist.
|
protected IntBigList |
l
The list this sublist restricts.
|
protected long |
to
Final (exclusive) index of this sublist.
|
| Constructor and Description |
|---|
IntSubList(IntBigList l,
long from,
long to) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(int k) |
void |
add(long index,
int k)
Inserts the specified element at the specified position in this type-specific big list (optional operation).
|
boolean |
addAll(long index,
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 index,
IntBigList l)
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,
it.unimi.dsi.fastutil.ints.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 |
addElements(long index,
int[][] a,
long offset,
long length)
Add (hopefully quickly) elements to this type-specific big list.
|
void |
getElements(long from,
int[][] a,
long offset,
long length)
Copies (hopefully quickly) elements of this type-specific big list into the given big array.
|
int |
getInt(long index)
Returns the element at the specified position.
|
it.unimi.dsi.fastutil.ints.IntBigListIterator |
listIterator(long index)
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).
|
void |
removeElements(long from,
long to)
Removes (hopefully quickly) elements of this type-specific big list.
|
int |
removeInt(long index)
Removes the element at the specified position.
|
int |
set(long index,
int k)
Replaces the element at the specified position in this big list with the specified element (optional operation).
|
long |
size64() |
it.unimi.dsi.fastutil.ints.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. |
add, addAll, addAll, addElements, clear, compareTo, contains, ensureIndex, ensureRestrictedIndex, equals, forEach, get, hashCode, indexOf, indexOf, iterator, lastIndexOf, lastIndexOf, listIterator, peek, peekInt, pop, popInt, push, push, remove, set, setElements, size, size, top, topInt, toStringadd, contains, containsAll, containsAll, forEach, remove, removeAll, removeAll, removeIf, retainAll, retainAll, toArray, toIntArray, toIntArrayclone, finalize, getClass, notify, notifyAll, wait, wait, waitaddAll, addAll, addAll, getElements, setElements, setElementsadd, contains, containsAll, intIterator, intParallelStream, intSpliterator, intStream, parallelStream, remove, removeAll, removeIf, removeIf, removeIf, retainAll, stream, toArray, toIntArray, toIntArrayprotected final IntBigList l
protected final long from
protected long to
public IntSubList(IntBigList l, long from, long to)
public boolean add(int k)
AbstractIntBigListadd in interface it.unimi.dsi.fastutil.ints.IntCollectionadd in class AbstractIntBigListpublic void add(long index,
int k)
AbstractIntBigListadd in interface IntBigListadd in class AbstractIntBigListBigList.add(long,Object)public boolean addAll(long index,
java.util.Collection<? extends java.lang.Integer> c)
AbstractIntBigListaddAll in interface it.unimi.dsi.fastutil.BigList<java.lang.Integer>addAll in class AbstractIntBigListpublic int getInt(long index)
IntBigListgetInt in interface IntBigListBigList.get(long)public int removeInt(long index)
AbstractIntBigListremoveInt in interface IntBigListremoveInt in class AbstractIntBigListBigList.remove(long)public int set(long index,
int k)
AbstractIntBigListset in interface IntBigListset in class AbstractIntBigListBigList.set(long,Object)public long size64()
size64 in interface it.unimi.dsi.fastutil.Size64public void getElements(long from,
int[][] a,
long offset,
long length)
AbstractIntBigListThis is a trivial iterator-based implementation. It is expected that implementations will override this method with a more optimized version.
getElements in interface IntBigListgetElements in class AbstractIntBigListfrom - 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.public void removeElements(long from,
long to)
AbstractIntBigListThis is a trivial iterator-based implementation. It is expected that implementations will override this method with a more optimized version.
removeElements in interface IntBigListremoveElements in class AbstractIntBigListfrom - the start index (inclusive).to - the end index (exclusive).public void addElements(long index,
int[][] a,
long offset,
long length)
AbstractIntBigListThis is a trivial iterator-based implementation. It is expected that implementations will override this method with a more optimized version.
addElements in interface IntBigListaddElements in class AbstractIntBigListindex - 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.public it.unimi.dsi.fastutil.ints.IntBigListIterator listIterator(long index)
AbstractIntBigListlistIterator in interface it.unimi.dsi.fastutil.BigList<java.lang.Integer>listIterator in interface IntBigListlistIterator in class AbstractIntBigListBigList.listIterator(long)public it.unimi.dsi.fastutil.ints.IntSpliterator spliterator()
IntBigListBigList 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 IntBigListspliterator in interface it.unimi.dsi.fastutil.ints.IntCollectionspliterator in interface it.unimi.dsi.fastutil.ints.IntIterablespliterator in interface java.lang.Iterable<java.lang.Integer>spliterator in interface java.util.Collection<java.lang.Integer>public IntBigList subList(long from, long to)
IntBigListfrom, inclusive, to the index to, exclusive.subList in interface it.unimi.dsi.fastutil.BigList<java.lang.Integer>subList in interface IntBigListsubList in class AbstractIntBigListBigList.subList(long,long)public boolean rem(int k)
AbstractIntBigListrem in interface it.unimi.dsi.fastutil.ints.IntCollectionrem in class AbstractIntBigListCollection.remove(Object)public boolean addAll(long index,
it.unimi.dsi.fastutil.ints.IntCollection c)
AbstractIntBigListaddAll in interface IntBigListaddAll in class AbstractIntBigListList.addAll(int,java.util.Collection)public boolean addAll(long index,
IntBigList l)
IntBigListaddAll in interface IntBigListBigList.addAll(long,Collection)