|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectit.unimi.dsi.fastutil.ints.IntCollections.SynchronizedCollection
it.unimi.dsi.fastutil.ints.IntLists.SynchronizedList
A synchronized wrapper class for lists.
Field Summary | |
static long |
serialVersionUID
|
Method Summary | |
void |
add(int i,
int k)
|
void |
add(int i,
Object k)
|
boolean |
addAll(int index,
Collection c)
|
boolean |
addAll(int index,
IntCollection c)
|
boolean |
addAll(int index,
IntList l)
|
boolean |
addAll(IntList l)
|
boolean |
addAll(int index,
List l)
|
boolean |
addAll(List l)
|
void |
addElements(int index,
int[] a)
Add (hopefully quickly) elements to this type-specific list. |
void |
addElements(int index,
int[] 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,
int[] a,
int offset,
int length)
Copies (hopefully quickly) elements of this type-specific list into the given array. |
int |
getInt(int i)
|
int |
hashCode()
|
int |
indexOf(int k)
|
int |
indexOf(Object o)
|
IntListIterator |
intListIterator()
Returns a type-specific list iterator on the list. |
IntListIterator |
intListIterator(int i)
Returns a type-specific list iterator on the list starting at a given index. |
IntList |
intSubList(int from,
int to)
|
int |
lastIndexOf(int k)
|
int |
lastIndexOf(Object o)
|
ListIterator |
listIterator()
|
ListIterator |
listIterator(int i)
|
Object |
remove(int i)
|
void |
removeElements(int from,
int to)
Removes (hopefully quickly) elements of this type-specific list. |
int |
removeInt(int i)
|
int |
set(int i,
int k)
|
Object |
set(int index,
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.ints.IntCollections.SynchronizedCollection |
add, add, addAll, addAll, clear, contains, contains, containsAll, containsAll, intIterator, isEmpty, iterator, rem, remove, removeAll, removeAll, retainAll, retainAll, size, toArray, toArray, toArray, toIntArray, toIntArray, 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.ints.IntCollection |
add, addAll, contains, containsAll, intIterator, rem, removeAll, retainAll, toArray, toIntArray, toIntArray |
Field Detail |
public static final long serialVersionUID
Method Detail |
public int getInt(int i)
getInt
in interface IntList
List.get(int)
public int set(int i, int k)
set
in interface IntList
List.set(int,Object)
public void add(int i, int k)
add
in interface IntList
List.add(int,Object)
public int removeInt(int i)
removeInt
in interface IntList
List.remove(int)
public int indexOf(int k)
indexOf
in interface IntList
List.indexOf(Object)
public int lastIndexOf(int k)
lastIndexOf
in interface IntList
List.lastIndexOf(Object)
public boolean addAll(int index, Collection c)
addAll
in interface List
public boolean addAll(int index, IntCollection c)
addAll
in interface IntList
List.add(int,Object)
public boolean addAll(List l)
public boolean addAll(IntList l)
addAll
in interface IntList
List.add(int,Object)
public boolean addAll(int index, List l)
public boolean addAll(int index, IntList l)
addAll
in interface IntList
List.add(int,Object)
public void getElements(int from, int[] a, int offset, int length)
IntList
getElements
in interface IntList
from
- 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)
IntList
removeElements
in interface IntList
from
- the start index (inclusive).to
- the end index (exclusive).public void addElements(int index, int[] a, int offset, int length)
IntList
addElements
in interface IntList
index
- 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, int[] a)
IntList
addElements
in interface IntList
index
- the index at which to add elements.a
- the array containing the elements.public void size(int size)
IntList
If 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 IntList
size
- the new size.public ListIterator listIterator()
listIterator
in interface List
public ListIterator listIterator(int i)
listIterator
in interface List
public IntListIterator intListIterator()
IntList
The 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 IntList
List.listIterator()
public IntListIterator intListIterator(int i)
IntList
The 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 IntList
List.listIterator(int)
public List subList(int from, int to)
subList
in interface List
public IntList intSubList(int from, int to)
intSubList
in interface IntList
List.subList(int,int)
public boolean equals(Object o)
equals
in interface List
public int hashCode()
hashCode
in interface List
public int compareTo(Object o)
compareTo
in interface Comparable
public Object get(int i)
get
in interface List
public void add(int i, Object k)
add
in interface List
public Object set(int index, Object k)
set
in interface List
public Object remove(int i)
remove
in interface List
public int indexOf(Object o)
indexOf
in interface List
public int lastIndexOf(Object o)
lastIndexOf
in interface List
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |