|
||||||||||
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.
Nested Class Summary |
Nested classes inherited from class it.unimi.dsi.fastutil.objects.AbstractReferenceList |
AbstractReferenceList.ReferenceSubList |
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 AbstractReferenceList
public boolean add(Object k)
add
in interface List
add
in class AbstractReferenceList
public void add(int i, Object k)
add
in interface List
add
in class AbstractReferenceList
public Object get(int i)
get
in interface List
public Object remove(int i)
remove
in interface List
remove
in class AbstractReferenceList
public boolean contains(Object k)
contains
in interface List
contains
in class AbstractReferenceList
public boolean addAll(ReferenceList c)
AbstractReferenceList
addAll
in class AbstractReferenceList
public 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 AbstractReferenceList
public boolean removeAll(ReferenceCollection c)
public boolean retainAll(ReferenceCollection c)
public Object[] toArray()
toArray
in interface List
toArray
in class AbstractReferenceCollection
public ObjectListIterator objectListIterator()
AbstractReferenceList
objectListIterator
in interface ReferenceList
objectListIterator
in class AbstractReferenceList
public ObjectListIterator objectListIterator(int i)
ReferenceList
The 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 ReferenceList
objectListIterator
in class AbstractReferenceList
public ReferenceList referenceSubList(int from, int to)
referenceSubList
in interface ReferenceList
referenceSubList
in class AbstractReferenceList
public int size()
size
in interface List
public void size(int size)
ReferenceList
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 ReferenceList
size
in class AbstractReferenceList
public void clear()
clear
in interface List
clear
in class AbstractReferenceCollection
public Object clone()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |