|
||||||||||
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.AbstractReferenceSet
it.unimi.dsi.fastutil.objects.ReferenceSets.Singleton
An immutable class representing a type-specific singleton set.
This class may be useful to implement your own in case you subclass a type-specific set.
Field Summary | |
static long |
serialVersionUID
|
Method Summary | |
boolean |
add(Object k)
|
boolean |
addAll(Collection c)
Adds all elements of the given collection to this collection. |
boolean |
addAll(List l)
|
Object |
clone()
|
boolean |
contains(Object k)
|
ObjectIterator |
objectIterator()
Returns a type-specific iterator on the collection. |
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()
|
Object[] |
toArray()
|
Methods inherited from class it.unimi.dsi.fastutil.objects.AbstractReferenceSet |
equals, hashCode, iterator, rem, remove |
Methods inherited from class it.unimi.dsi.fastutil.objects.AbstractReferenceCollection |
clear, containsAll, isEmpty, iterator, toArray, toString |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.Set |
clear, containsAll, isEmpty, iterator, toArray |
Field Detail |
public static final long serialVersionUID
Method Detail |
public boolean add(Object k)
add
in interface Set
add
in class AbstractReferenceCollection
public boolean contains(Object k)
contains
in interface Set
public boolean addAll(List l)
public boolean addAll(Collection c)
AbstractReferenceCollection
addAll
in interface Set
addAll
in class AbstractReferenceCollection
c
- a collection.
true
if this collection changed as a result of the call.public boolean removeAll(Collection c)
AbstractReferenceCollection
removeAll
in interface Set
removeAll
in class AbstractReferenceCollection
c
- a collection.
true
if this collection changed as a result of the call.public boolean retainAll(Collection c)
AbstractReferenceCollection
retainAll
in interface Set
retainAll
in class AbstractReferenceCollection
c
- a collection.
true
if this collection changed as a result of the call.public Object[] toArray()
toArray
in interface Set
toArray
in class AbstractReferenceCollection
public ObjectIterator objectIterator()
ReferenceCollection
The iterator returned by the Collection.iterator()
method and by this
method are identical; however, using this method you can save a type casting.
objectIterator
in interface ReferenceCollection
Collection.iterator()
public int size()
size
in interface Set
public Object clone()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |