|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectit.unimi.dsi.fastutil.objects.AbstractObjectCollection
it.unimi.dsi.fastutil.objects.AbstractObjectList
it.unimi.dsi.fastutil.objects.AbstractObjectList.ObjectSubList
| Nested Class Summary |
| Nested classes inherited from class it.unimi.dsi.fastutil.objects.AbstractObjectList |
AbstractObjectList.ObjectSubList |
| Constructor Summary | |
AbstractObjectList.ObjectSubList(ObjectList l,
int from,
int to)
|
|
| Method Summary | |
void |
add(int index,
Object k)
|
boolean |
add(Object k)
|
boolean |
addAll(int index,
Collection c)
|
boolean |
addAll(int index,
ObjectCollection c)
Delegates to a more generic method. |
boolean |
addAll(int index,
ObjectList l)
Delegates to a more generic method. |
void |
addElements(int index,
Object[] a,
int offset,
int length)
Adds elements to this type-specific list one-by-one. |
void |
clear()
|
Object |
get(int index)
|
void |
getElements(int from,
Object[] a,
int offset,
int length)
Copies element of this type-specific list into the given array one-by-one. |
ObjectListIterator |
objectListIterator(int index)
Returns a type-specific list iterator on the list starting at a given index. |
ObjectList |
objectSubList(int from,
int to)
|
boolean |
rem(Object k)
|
Object |
remove(int index)
|
void |
removeElements(int from,
int to)
Removes elements of this type-specific list one-by-one. |
Object |
set(int index,
Object k)
|
int |
size()
|
| Methods inherited from class it.unimi.dsi.fastutil.objects.AbstractObjectList |
addAll, addAll, addAll, addElements, compareTo, contains, equals, hashCode, indexOf, lastIndexOf, listIterator, listIterator, objectIterator, objectListIterator, peek, pop, push, size, subList, top, toString |
| Methods inherited from class it.unimi.dsi.fastutil.objects.AbstractObjectCollection |
containsAll, isEmpty, iterator, remove, removeAll, retainAll, toArray, toArray |
| Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.List |
containsAll, isEmpty, iterator, remove, removeAll, retainAll, toArray, toArray |
| Methods inherited from interface it.unimi.dsi.fastutil.Stack |
isEmpty |
| Constructor Detail |
public AbstractObjectList.ObjectSubList(ObjectList l,
int from,
int to)
| Method Detail |
public boolean add(Object k)
add in interface Listadd in class AbstractObjectList
public void add(int index,
Object k)
add in interface Listadd in class AbstractObjectList
public boolean addAll(int index,
Collection c)
addAll in interface ListaddAll in class AbstractObjectList
public boolean addAll(int index,
ObjectCollection c)
AbstractObjectList
addAll in class AbstractObjectList
public boolean addAll(int index,
ObjectList l)
AbstractObjectList
addAll in class AbstractObjectListpublic Object get(int index)
get in interface Listpublic Object remove(int index)
remove in interface Listremove in class AbstractObjectListpublic boolean rem(Object k)
rem in class AbstractObjectList
public Object set(int index,
Object k)
set in interface Listset in class AbstractObjectListpublic void clear()
clear in interface Listclear in class AbstractObjectCollectionpublic int size()
size in interface List
public void getElements(int from,
Object[] a,
int offset,
int length)
AbstractObjectListThis is a trivial iterator-based implementation. It is expected that implementations will override this method with a more optimized version.
getElements in interface ObjectListgetElements in class AbstractObjectListfrom - 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)
AbstractObjectListThis is a trivial iterator-based implementation. It is expected that implementations will override this method with a more optimized version.
removeElements in interface ObjectListremoveElements in class AbstractObjectListfrom - the start index (inclusive).to - the end index (exclusive).
public void addElements(int index,
Object[] a,
int offset,
int length)
AbstractObjectListThis is a trivial iterator-based implementation. It is expected that implementations will override this method with a more optimized version.
addElements in interface ObjectListaddElements in class AbstractObjectListindex - 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 ObjectListIterator objectListIterator(int index)
ObjectListThe iterator returned by the List.listIterator() method and by this
method are identical; however, using this method you can save a type casting.
objectListIterator in interface ObjectListobjectListIterator in class AbstractObjectList
public ObjectList objectSubList(int from,
int to)
objectSubList in interface ObjectListobjectSubList in class AbstractObjectList
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||