|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectit.unimi.dsi.fastutil.objects.AbstractObjectCollection
it.unimi.dsi.fastutil.objects.AbstractObjectSet
it.unimi.dsi.fastutil.objects.ObjectSets.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.AbstractObjectSet |
equals, hashCode, iterator, rem, remove |
Methods inherited from class it.unimi.dsi.fastutil.objects.AbstractObjectCollection |
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 AbstractObjectCollection
public boolean contains(Object k)
contains
in interface Set
public boolean addAll(List l)
public boolean addAll(Collection c)
AbstractObjectCollection
addAll
in interface Set
addAll
in class AbstractObjectCollection
c
- a collection.
true
if this collection changed as a result of the call.public boolean removeAll(Collection c)
AbstractObjectCollection
removeAll
in interface Set
removeAll
in class AbstractObjectCollection
c
- a collection.
true
if this collection changed as a result of the call.public boolean retainAll(Collection c)
AbstractObjectCollection
retainAll
in interface Set
retainAll
in class AbstractObjectCollection
c
- a collection.
true
if this collection changed as a result of the call.public Object[] toArray()
toArray
in interface Set
toArray
in class AbstractObjectCollection
public ObjectIterator objectIterator()
ObjectCollection
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 ObjectCollection
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 |