|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectit.unimi.dsi.fastutil.objects.AbstractReferenceCollection<K>
it.unimi.dsi.fastutil.objects.AbstractReferenceList<K>
it.unimi.dsi.fastutil.objects.ReferenceLists.Singleton<K>
public static class ReferenceLists.Singleton<K>
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/interfaces inherited from class it.unimi.dsi.fastutil.objects.AbstractReferenceList |
|---|
AbstractReferenceList.ReferenceSubList<K> |
| Field Summary | |
|---|---|
static long |
serialVersionUID
|
| Method Summary | |
|---|---|
boolean |
addAll(Collection<? extends K> c)
Delegates to a more generic method. |
boolean |
addAll(int i,
Collection<? extends K> c)
|
void |
clear()
|
Object |
clone()
|
boolean |
contains(Object k)
|
K |
get(int i)
|
ObjectListIterator<K> |
listIterator()
Returns a type-specific list iterator on the list. |
ObjectListIterator<K> |
listIterator(int i)
Returns a type-specific list iterator on the list starting at a given index. |
K |
remove(int i)
|
boolean |
removeAll(Collection<?> c)
Remove from this collection all elements in the given collection. |
boolean |
retainAll(Collection<?> c)
Retains in this collection only elements from the given collection. |
int |
size()
|
void |
size(int size)
Sets the size of this list. |
ReferenceList<K> |
subList(int from,
int to)
Returns a type-specific view of the portion of this list from the index from, inclusive, to the index to, exclusive. |
Object[] |
toArray()
|
| Methods inherited from class it.unimi.dsi.fastutil.objects.AbstractReferenceList |
|---|
add, add, addElements, addElements, equals, getElements, hashCode, indexOf, iterator, lastIndexOf, objectListIterator, objectListIterator, peek, pop, push, referenceSubList, removeElements, set, top, toString |
| Methods inherited from class it.unimi.dsi.fastutil.objects.AbstractReferenceCollection |
|---|
containsAll, isEmpty, objectIterator, remove, toArray |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.List |
|---|
containsAll, isEmpty, remove, toArray |
| Methods inherited from interface it.unimi.dsi.fastutil.objects.ReferenceCollection |
|---|
objectIterator, toArray |
| Methods inherited from interface it.unimi.dsi.fastutil.Stack |
|---|
isEmpty |
| Field Detail |
|---|
public static final long serialVersionUID
| Method Detail |
|---|
public K get(int i)
get in interface List<K>public K remove(int i)
remove in interface List<K>remove in class AbstractReferenceList<K>public boolean contains(Object k)
contains in interface Collection<K>contains in interface List<K>contains in class AbstractReferenceList<K>public boolean addAll(Collection<? extends K> c)
AbstractReferenceList
addAll in interface Collection<K>addAll in interface List<K>addAll in class AbstractReferenceList<K>c - a collection.
true if this collection changed as a result of the call.
public boolean addAll(int i,
Collection<? extends K> c)
addAll in interface List<K>addAll in class AbstractReferenceList<K>public boolean removeAll(Collection<?> c)
AbstractReferenceCollection
removeAll in interface Collection<K>removeAll in interface List<K>removeAll in class AbstractReferenceCollection<K>c - a collection.
true if this collection changed as a result of the call.public boolean retainAll(Collection<?> c)
AbstractReferenceCollection
retainAll in interface Collection<K>retainAll in interface List<K>retainAll in class AbstractReferenceCollection<K>c - a collection.
true if this collection changed as a result of the call.public Object[] toArray()
toArray in interface Collection<K>toArray in interface List<K>toArray in class AbstractReferenceCollection<K>public ObjectListIterator<K> listIterator()
ReferenceList
listIterator in interface ReferenceList<K>listIterator in interface List<K>listIterator in class AbstractReferenceList<K>ReferenceList.listIterator()public ObjectListIterator<K> listIterator(int i)
ReferenceList
listIterator in interface ReferenceList<K>listIterator in interface List<K>listIterator in class AbstractReferenceList<K>ReferenceList.listIterator(int)
public ReferenceList<K> subList(int from,
int to)
ReferenceListfrom, inclusive, to the index to, exclusive.
Note that this specification strengthens the one given in List.subList(int,int).
subList in interface ReferenceList<K>subList in interface List<K>subList in class AbstractReferenceList<K>List.subList(int,int)public int size()
size in interface Collection<K>size in interface List<K>public 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 ReferenceList<K>size in class AbstractReferenceList<K>size - the new size.public void clear()
clear in interface Collection<K>clear in interface List<K>clear in class AbstractReferenceCollection<K>public Object clone()
clone in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||