|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectit.unimi.dsi.fastutil.objects.AbstractReferenceCollection
it.unimi.dsi.fastutil.objects.AbstractReferenceList
it.unimi.dsi.fastutil.objects.AbstractReferenceList.ReferenceSubList
| Nested Class Summary |
| Nested classes inherited from class it.unimi.dsi.fastutil.objects.AbstractReferenceList |
AbstractReferenceList.ReferenceSubList |
| Constructor Summary | |
AbstractReferenceList.ReferenceSubList(ReferenceList 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,
ReferenceCollection c)
Delegates to a more generic method. |
boolean |
addAll(int index,
ReferenceList 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. |
ReferenceList |
referenceSubList(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.AbstractReferenceList |
addAll, addAll, addAll, addElements, 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.AbstractReferenceCollection |
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 AbstractReferenceList.ReferenceSubList(ReferenceList l,
int from,
int to)
| Method Detail |
public boolean add(Object k)
add in interface Listadd in class AbstractReferenceList
public void add(int index,
Object k)
add in interface Listadd in class AbstractReferenceList
public boolean addAll(int index,
Collection c)
addAll in interface ListaddAll in class AbstractReferenceList
public boolean addAll(int index,
ReferenceCollection c)
AbstractReferenceList
addAll in class AbstractReferenceList
public boolean addAll(int index,
ReferenceList l)
AbstractReferenceList
addAll in class AbstractReferenceListpublic Object get(int index)
get in interface Listpublic Object remove(int index)
remove in interface Listremove in class AbstractReferenceListpublic boolean rem(Object k)
rem in class AbstractReferenceList
public Object set(int index,
Object k)
set in interface Listset in class AbstractReferenceListpublic void clear()
clear in interface Listclear in class AbstractReferenceCollectionpublic int size()
size in interface List
public void getElements(int from,
Object[] a,
int offset,
int length)
AbstractReferenceListThis is a trivial iterator-based implementation. It is expected that implementations will override this method with a more optimized version.
getElements in interface ReferenceListgetElements in class AbstractReferenceListfrom - 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)
AbstractReferenceListThis is a trivial iterator-based implementation. It is expected that implementations will override this method with a more optimized version.
removeElements in interface ReferenceListremoveElements in class AbstractReferenceListfrom - the start index (inclusive).to - the end index (exclusive).
public void addElements(int index,
Object[] a,
int offset,
int length)
AbstractReferenceListThis is a trivial iterator-based implementation. It is expected that implementations will override this method with a more optimized version.
addElements in interface ReferenceListaddElements in class AbstractReferenceListindex - 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)
ReferenceListThe 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 ReferenceListobjectListIterator in class AbstractReferenceList
public ReferenceList referenceSubList(int from,
int to)
referenceSubList in interface ReferenceListreferenceSubList in class AbstractReferenceList
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||