|
||||||||||
| 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.ReferenceLists.Singleton
An immutable class representing a type-specific singleton list.
This class may be useful to implement your own in case you subclass a type-specific list.
| Field Summary | |
static long |
serialVersionUID
|
| Method Summary | |
void |
add(int i,
Object k)
|
boolean |
add(Object k)
|
boolean |
addAll(int i,
ReferenceCollection c)
Delegates to a more generic method. |
boolean |
addAll(int i,
ReferenceList c)
Delegates to a more generic method. |
boolean |
addAll(ReferenceCollection c)
Delegates to a more generic method. |
boolean |
addAll(ReferenceList c)
Delegates to a more generic method. |
void |
clear()
|
Object |
clone()
|
boolean |
contains(Object k)
|
Object |
get(int i)
|
ObjectListIterator |
objectListIterator()
Delegates to the corresponding list-iterator method. |
ObjectListIterator |
objectListIterator(int i)
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 i)
|
boolean |
removeAll(ReferenceCollection c)
|
boolean |
retainAll(ReferenceCollection c)
|
int |
size()
|
void |
size(int size)
Sets the size of this list. |
Object[] |
toArray()
|
| Methods inherited from class it.unimi.dsi.fastutil.objects.AbstractReferenceList |
addAll, addAll, addElements, addElements, equals, getElements, hashCode, indexOf, lastIndexOf, listIterator, listIterator, objectIterator, peek, pop, push, removeElements, set, subList, top, toString |
| Methods inherited from class it.unimi.dsi.fastutil.objects.AbstractReferenceCollection |
containsAll, isEmpty, iterator, remove, removeAll, retainAll, 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 |
| Methods inherited from interface it.unimi.dsi.fastutil.Stack |
isEmpty |
| Field Detail |
public static final long serialVersionUID
| Method Detail |
public boolean rem(Object k)
rem in class AbstractReferenceListpublic boolean add(Object k)
add in interface Listadd in class AbstractReferenceCollection
public void add(int i,
Object k)
add in interface Listadd in class AbstractReferenceListpublic Object get(int i)
get in interface Listpublic Object remove(int i)
remove in interface Listremove in class AbstractReferenceListpublic boolean contains(Object k)
contains in interface Listcontains in class AbstractReferenceListpublic boolean addAll(ReferenceList c)
AbstractReferenceList
addAll in class AbstractReferenceListpublic boolean addAll(ReferenceCollection c)
AbstractReferenceList
addAll in class AbstractReferenceList
public boolean addAll(int i,
ReferenceList c)
AbstractReferenceList
addAll in class AbstractReferenceList
public boolean addAll(int i,
ReferenceCollection c)
AbstractReferenceList
addAll in class AbstractReferenceListpublic boolean removeAll(ReferenceCollection c)
public boolean retainAll(ReferenceCollection c)
public Object[] toArray()
toArray in interface ListtoArray in class AbstractReferenceCollectionpublic ObjectListIterator objectListIterator()
AbstractReferenceList
objectListIterator in interface ReferenceListobjectListIterator in class AbstractReferenceListpublic ObjectListIterator objectListIterator(int i)
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 ReferenceListList.listIterator(int)
public ReferenceList referenceSubList(int from,
int to)
referenceSubList in interface ReferenceListreferenceSubList in class AbstractReferenceListpublic int size()
size in interface Listpublic void size(int size)
ReferenceListIf 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 ReferenceListsize in class AbstractReferenceListpublic void clear()
clear in interface Listclear in class AbstractReferenceCollectionpublic Object clone()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||