|
||||||||||
| 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 Setadd in class AbstractObjectCollectionpublic boolean contains(Object k)
contains in interface Setpublic boolean addAll(List l)
public boolean addAll(Collection c)
AbstractObjectCollection
addAll in interface SetaddAll in class AbstractObjectCollectionc - a collection.
true if this collection changed as a result of the call.public boolean removeAll(Collection c)
AbstractObjectCollection
removeAll in interface SetremoveAll in class AbstractObjectCollectionc - a collection.
true if this collection changed as a result of the call.public boolean retainAll(Collection c)
AbstractObjectCollection
retainAll in interface SetretainAll in class AbstractObjectCollectionc - a collection.
true if this collection changed as a result of the call.public Object[] toArray()
toArray in interface SettoArray in class AbstractObjectCollectionpublic ObjectIterator objectIterator()
ObjectCollectionThe 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 ObjectCollectionCollection.iterator()public int size()
size in interface Setpublic Object clone()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||