|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectit.unimi.dsi.fastutil.objects.ObjectCollections.SynchronizedCollection
it.unimi.dsi.fastutil.objects.ObjectLists.SynchronizedList
A synchronized wrapper class for lists.
| Field Summary | |
static long |
serialVersionUID
|
| Method Summary | |
void |
add(int i,
Object k)
|
boolean |
addAll(int index,
Collection c)
|
boolean |
addAll(int index,
List l)
|
boolean |
addAll(int index,
ObjectCollection c)
|
boolean |
addAll(int index,
ObjectList l)
|
boolean |
addAll(List l)
|
boolean |
addAll(ObjectList l)
|
void |
addElements(int index,
Object[] a)
Add (hopefully quickly) elements to this type-specific list. |
void |
addElements(int index,
Object[] a,
int offset,
int length)
Add (hopefully quickly) elements to this type-specific list. |
int |
compareTo(Object o)
|
boolean |
equals(Object o)
|
Object |
get(int i)
|
void |
getElements(int from,
Object[] a,
int offset,
int length)
Copies (hopefully quickly) elements of this type-specific list into the given array. |
int |
hashCode()
|
int |
indexOf(Object k)
|
int |
lastIndexOf(Object k)
|
ListIterator |
listIterator()
|
ListIterator |
listIterator(int i)
|
ObjectListIterator |
objectListIterator()
Returns a type-specific list iterator on the list. |
ObjectListIterator |
objectListIterator(int i)
Returns a type-specific list iterator on the list starting at a given index. |
ObjectList |
objectSubList(int from,
int to)
|
Object |
remove(int i)
|
void |
removeElements(int from,
int to)
Removes (hopefully quickly) elements of this type-specific list. |
Object |
set(int i,
Object k)
|
void |
size(int size)
Sets the size of this list. |
List |
subList(int from,
int to)
|
| Methods inherited from class it.unimi.dsi.fastutil.objects.ObjectCollections.SynchronizedCollection |
add, addAll, addAll, clear, contains, containsAll, containsAll, isEmpty, iterator, objectIterator, rem, remove, removeAll, removeAll, retainAll, retainAll, size, toArray, toArray, toString |
| Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.List |
add, addAll, clear, contains, containsAll, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray |
| Methods inherited from interface it.unimi.dsi.fastutil.objects.ObjectCollection |
objectIterator |
| Field Detail |
public static final long serialVersionUID
| Method Detail |
public Object get(int i)
get in interface List
public Object set(int i,
Object k)
set in interface List
public void add(int i,
Object k)
add in interface Listpublic Object remove(int i)
remove in interface Listpublic int indexOf(Object k)
indexOf in interface Listpublic int lastIndexOf(Object k)
lastIndexOf in interface List
public boolean addAll(int index,
Collection c)
addAll in interface List
public boolean addAll(int index,
ObjectCollection c)
public boolean addAll(List l)
public boolean addAll(ObjectList l)
public boolean addAll(int index,
List l)
public boolean addAll(int index,
ObjectList l)
public void getElements(int from,
Object[] a,
int offset,
int length)
ObjectList
getElements in interface ObjectListfrom - 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)
ObjectList
removeElements in interface ObjectListfrom - the start index (inclusive).to - the end index (exclusive).
public void addElements(int index,
Object[] a,
int offset,
int length)
ObjectList
addElements in interface ObjectListindex - 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 void addElements(int index,
Object[] a)
ObjectList
addElements in interface ObjectListindex - the index at which to add elements.a - the array containing the elements.public void size(int size)
ObjectListIf the specified size is smaller than the current size, the last elements are
discarded. Otherwise, they are filled with 0/null/false.
size in interface ObjectListsize - the new size.public ListIterator listIterator()
listIterator in interface Listpublic ListIterator listIterator(int i)
listIterator in interface Listpublic ObjectListIterator objectListIterator()
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 ObjectListList.listIterator()public ObjectListIterator objectListIterator(int i)
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 ObjectListList.listIterator(int)
public List subList(int from,
int to)
subList in interface List
public ObjectList objectSubList(int from,
int to)
objectSubList in interface ObjectListList.subList(int,int)public boolean equals(Object o)
equals in interface Listpublic int hashCode()
hashCode in interface Listpublic int compareTo(Object o)
compareTo in interface Comparable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||