|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectit.unimi.dsi.fastutil.shorts.ShortCollections.SynchronizedCollection
it.unimi.dsi.fastutil.shorts.ShortLists.SynchronizedList
A synchronized wrapper class for lists.
| Field Summary | |
static long |
serialVersionUID
|
| Method Summary | |
void |
add(int i,
Object k)
|
void |
add(int i,
short k)
|
boolean |
addAll(int index,
Collection c)
|
boolean |
addAll(int index,
List l)
|
boolean |
addAll(int index,
ShortCollection c)
|
boolean |
addAll(int index,
ShortList l)
|
boolean |
addAll(List l)
|
boolean |
addAll(ShortList l)
|
void |
addElements(int index,
short[] a)
Add (hopefully quickly) elements to this type-specific list. |
void |
addElements(int index,
short[] 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,
short[] a,
int offset,
int length)
Copies (hopefully quickly) elements of this type-specific list into the given array. |
short |
getShort(int i)
|
int |
hashCode()
|
int |
indexOf(Object o)
|
int |
indexOf(short k)
|
int |
lastIndexOf(Object o)
|
int |
lastIndexOf(short k)
|
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. |
short |
removeShort(int i)
|
Object |
set(int index,
Object k)
|
short |
set(int i,
short k)
|
ShortListIterator |
shortListIterator()
Returns a type-specific list iterator on the list. |
ShortListIterator |
shortListIterator(int i)
Returns a type-specific list iterator on the list starting at a given index. |
ShortList |
shortSubList(int from,
int to)
|
void |
size(int size)
Sets the size of this list. |
List |
subList(int from,
int to)
|
| Methods inherited from class it.unimi.dsi.fastutil.shorts.ShortCollections.SynchronizedCollection |
add, add, addAll, addAll, clear, contains, contains, containsAll, containsAll, isEmpty, iterator, rem, remove, removeAll, removeAll, retainAll, retainAll, shortIterator, size, toArray, toArray, toArray, toShortArray, toShortArray, 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.shorts.ShortCollection |
add, addAll, contains, containsAll, rem, removeAll, retainAll, shortIterator, toArray, toShortArray, toShortArray |
| Field Detail |
public static final long serialVersionUID
| Method Detail |
public short getShort(int i)
getShort in interface ShortListList.get(int)
public short set(int i,
short k)
set in interface ShortListList.set(int,Object)
public void add(int i,
short k)
add in interface ShortListList.add(int,Object)public short removeShort(int i)
removeShort in interface ShortListList.remove(int)public int indexOf(short k)
indexOf in interface ShortListList.indexOf(Object)public int lastIndexOf(short k)
lastIndexOf in interface ShortListList.lastIndexOf(Object)
public boolean addAll(int index,
Collection c)
addAll in interface List
public boolean addAll(int index,
ShortCollection c)
addAll in interface ShortListList.add(int,Object)public boolean addAll(List l)
public boolean addAll(ShortList l)
addAll in interface ShortListList.add(int,Object)
public boolean addAll(int index,
List l)
public boolean addAll(int index,
ShortList l)
addAll in interface ShortListList.add(int,Object)
public void getElements(int from,
short[] a,
int offset,
int length)
ShortList
getElements in interface ShortListfrom - 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)
ShortList
removeElements in interface ShortListfrom - the start index (inclusive).to - the end index (exclusive).
public void addElements(int index,
short[] a,
int offset,
int length)
ShortList
addElements in interface ShortListindex - 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,
short[] a)
ShortList
addElements in interface ShortListindex - the index at which to add elements.a - the array containing the elements.public void size(int size)
ShortListIf 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 ShortListsize - the new size.public ListIterator listIterator()
listIterator in interface Listpublic ListIterator listIterator(int i)
listIterator in interface Listpublic ShortListIterator shortListIterator()
ShortListThe iterator returned by the List.listIterator() method and by this
method are identical; however, using this method you can save a type casting.
shortListIterator in interface ShortListList.listIterator()public ShortListIterator shortListIterator(int i)
ShortListThe iterator returned by the List.listIterator() method and by this
method are identical; however, using this method you can save a type casting.
shortListIterator in interface ShortListList.listIterator(int)
public List subList(int from,
int to)
subList in interface List
public ShortList shortSubList(int from,
int to)
shortSubList in interface ShortListList.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 Comparablepublic 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 Listpublic Object remove(int i)
remove in interface Listpublic int indexOf(Object o)
indexOf in interface Listpublic int lastIndexOf(Object o)
lastIndexOf in interface List
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||