|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectit.unimi.dsi.fastutil.ints.AbstractIntCollection
it.unimi.dsi.fastutil.ints.AbstractIntList
it.unimi.dsi.fastutil.ints.AbstractIntList.IntSubList
| Nested Class Summary |
| Nested classes inherited from class it.unimi.dsi.fastutil.ints.AbstractIntList |
AbstractIntList.IntSubList |
| Constructor Summary | |
AbstractIntList.IntSubList(IntList l,
int from,
int to)
|
|
| Method Summary | |
boolean |
add(int k)
|
void |
add(int index,
int k)
|
boolean |
addAll(int index,
Collection c)
|
boolean |
addAll(int index,
IntCollection c)
Delegates to a more generic method. |
boolean |
addAll(int index,
IntList l)
Delegates to a more generic method. |
void |
addElements(int index,
int[] a,
int offset,
int length)
Adds elements to this type-specific list one-by-one. |
void |
clear()
|
void |
getElements(int from,
int[] a,
int offset,
int length)
Copies element of this type-specific list into the given array one-by-one. |
int |
getInt(int index)
|
IntListIterator |
intListIterator(int index)
Returns a type-specific list iterator on the list starting at a given index. |
IntList |
intSubList(int from,
int to)
|
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. |
void |
removeElements(int from,
int to)
Removes elements of this type-specific list one-by-one. |
int |
removeInt(int index)
|
int |
set(int index,
int k)
|
int |
size()
|
| Methods inherited from class it.unimi.dsi.fastutil.ints.AbstractIntList |
add, addAll, addAll, addAll, addElements, compareTo, contains, equals, get, hashCode, indexOf, indexOf, intIterator, intListIterator, lastIndexOf, lastIndexOf, listIterator, listIterator, peek, peekInt, pop, popInt, push, push, remove, set, size, subList, top, topInt, toString |
| Methods inherited from class it.unimi.dsi.fastutil.ints.AbstractIntCollection |
add, contains, containsAll, containsAll, isEmpty, iterator, rem, remove, 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 java.util.List |
add, contains, containsAll, isEmpty, iterator, remove, removeAll, retainAll, toArray, toArray |
| Methods inherited from interface it.unimi.dsi.fastutil.ints.IntCollection |
containsAll, removeAll, retainAll, toArray, toIntArray, toIntArray |
| Methods inherited from interface it.unimi.dsi.fastutil.Stack |
isEmpty |
| Constructor Detail |
public AbstractIntList.IntSubList(IntList l,
int from,
int to)
| Method Detail |
public boolean add(int k)
add in interface IntCollectionadd in class AbstractIntList
public void add(int index,
int k)
add in interface IntListadd in class AbstractIntList
public boolean addAll(int index,
Collection c)
addAll in interface ListaddAll in class AbstractIntList
public boolean addAll(int index,
IntCollection c)
AbstractIntList
addAll in interface IntListaddAll in class AbstractIntList
public boolean addAll(int index,
IntList l)
AbstractIntList
addAll in interface IntListaddAll in class AbstractIntListpublic int getInt(int index)
getInt in interface IntListList.get(int)public int removeInt(int index)
removeInt in interface IntListremoveInt in class AbstractIntListpublic 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 AbstractIntList
public int set(int index,
int k)
set in interface IntListset in class AbstractIntListpublic void clear()
clear in interface Listclear in class AbstractIntCollectionpublic int size()
size in interface List
public void getElements(int from,
int[] a,
int offset,
int length)
AbstractIntListThis is a trivial iterator-based implementation. It is expected that implementations will override this method with a more optimized version.
getElements in interface IntListgetElements in class AbstractIntListfrom - the start index (inclusive).a - the destination array.offset - the offset into the destination array where to store the first element copied.length - the number of elements to be copied.
public void removeElements(int from,
int to)
AbstractIntListThis is a trivial iterator-based implementation. It is expected that implementations will override this method with a more optimized version.
removeElements in interface IntListremoveElements in class AbstractIntListfrom - the start index (inclusive).to - the end index (exclusive).
public void addElements(int index,
int[] a,
int offset,
int length)
AbstractIntListThis is a trivial iterator-based implementation. It is expected that implementations will override this method with a more optimized version.
addElements in interface IntListaddElements in class AbstractIntListindex - the index at which to add elements.a - the array containing the elements.offset - the offset of the first element to add.length - the number of elements to add.public IntListIterator intListIterator(int index)
IntListThe iterator returned by the List.listIterator() method and by this
method are identical; however, using this method you can save a type casting.
intListIterator in interface IntListintListIterator in class AbstractIntList
public IntList intSubList(int from,
int to)
intSubList in interface IntListintSubList in class AbstractIntList
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||