|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.util.AbstractCollection<java.lang.Integer>
it.unimi.dsi.fastutil.ints.AbstractIntCollection
it.unimi.dsi.fastutil.ints.AbstractIntBigList
it.unimi.dsi.fastutil.ints.AbstractIntBigList.IntSubList
public static class AbstractIntBigList.IntSubList
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class it.unimi.dsi.fastutil.ints.AbstractIntBigList |
|---|
AbstractIntBigList.IntSubList |
| Constructor Summary | |
|---|---|
AbstractIntBigList.IntSubList(IntBigList l,
long from,
long to)
|
|
| Method Summary | |
|---|---|
boolean |
add(int k)
|
void |
add(long index,
int k)
|
boolean |
addAll(long index,
java.util.Collection<? extends java.lang.Integer> c)
Inserts all of the elements in the specified collection into this big list at the specified position (optional operation). |
boolean |
addAll(long index,
IntCollection c)
Delegates to a more generic method. |
boolean |
addAll(long index,
IntList l)
|
void |
addElements(long index,
int[][] a,
long offset,
long length)
Adds elements to this type-specific big list one-by-one. |
void |
clear()
|
void |
getElements(long from,
int[][] a,
long offset,
long length)
Copies element of this type-specific big list into the given big array one-by-one. |
int |
getInt(long index)
|
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)
Note that this method should be called remove(), but the clash
with the similarly named index-based method in the List interface
forces us to use a distinguished name. |
boolean |
remove(java.lang.Object o)
Delegates to the type-specific rem() method. |
void |
removeElements(long from,
long to)
Removes elements of this type-specific big list one-by-one. |
int |
removeInt(long index)
|
int |
set(long index,
int k)
|
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. |
| Methods inherited from class it.unimi.dsi.fastutil.ints.AbstractIntBigList |
|---|
add, addAll, addAll, addAll, addAll, addAll, addElements, compareTo, contains, equals, get, getInt, hashCode, indexOf, indexOf, iterator, lastIndexOf, lastIndexOf, listIterator, listIterator, peek, peekInt, pop, popInt, push, push, remove, remove, removeInt, set, set, size, size, size, top, topInt, toString |
| Methods inherited from class it.unimi.dsi.fastutil.ints.AbstractIntCollection |
|---|
add, contains, containsAll, containsAll, intIterator, isEmpty, rem, removeAll, removeAll, retainAll, retainAll, toArray, toArray, toArray, toIntArray, toIntArray |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface it.unimi.dsi.fastutil.ints.IntCollection |
|---|
containsAll, intIterator, removeAll, retainAll, toArray, toArray, toIntArray, toIntArray |
| Methods inherited from interface java.util.Collection |
|---|
add, contains, containsAll, isEmpty, removeAll, retainAll, toArray |
| Methods inherited from interface it.unimi.dsi.fastutil.Stack |
|---|
isEmpty |
| Constructor Detail |
|---|
public AbstractIntBigList.IntSubList(IntBigList l,
long from,
long to)
| Method Detail |
|---|
public boolean add(int k)
add in interface IntCollectionadd in class AbstractIntBigListCollection.add(Object)
public void add(long index,
int k)
add in interface IntBigListadd in class AbstractIntBigListList.add(int,Object)
public boolean addAll(long index,
java.util.Collection<? extends java.lang.Integer> c)
BigList
addAll in interface BigList<java.lang.Integer>addAll in class AbstractIntBigListindex - 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 int getInt(long index)
getInt in interface IntBigListBigList.get(long)public int removeInt(long index)
removeInt in interface IntBigListremoveInt in class AbstractIntBigListBigList.remove(long)
public int set(long index,
int k)
set in interface IntBigListset in class AbstractIntBigListBigList.set(long,Object)public void clear()
clear in interface java.util.Collection<java.lang.Integer>clear in class java.util.AbstractCollection<java.lang.Integer>public long size64()
Size64
size64 in interface Size64
public 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 IntBigListIterator listIterator(long index)
IntBigList
listIterator in interface BigList<java.lang.Integer>listIterator in interface IntBigListlistIterator in class AbstractIntBigListindex - 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<java.lang.Integer>subList in interface IntBigListsubList in class AbstractIntBigListfrom - the starting element (inclusive).to - the ending element (exclusive).
BigList.subList(long,long)public boolean rem(int k)
IntCollectionremove(), but the clash
with the similarly named index-based method in the List interface
forces us to use a distinguished name. For simplicity, the set interfaces reinstates
remove().
rem in interface IntCollectionrem in class AbstractIntBigListCollection.remove(Object)public boolean remove(java.lang.Object o)
AbstractIntCollectionrem() method.
remove in interface java.util.Collection<java.lang.Integer>remove in class AbstractIntCollection
public boolean addAll(long index,
IntCollection c)
AbstractIntBigList
addAll in interface IntBigListaddAll in class AbstractIntBigListList.addAll(int,java.util.Collection)
public boolean addAll(long index,
IntList l)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||