|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectit.unimi.dsi.fastutil.objects.AbstractReferenceCollection
An abstract class providing basic methods for collections implementing a type-specific interface.
In particular, this class provide iterator(), add(Object), remove(Object) and
Collection.contains(Object) methods that just call the type-specific counterpart.
| Method Summary | |
boolean |
add(Object k)
|
boolean |
addAll(Collection c)
Adds all elements of the given collection to this collection. |
void |
clear()
|
boolean |
containsAll(Collection c)
Checks whether this collection contains all elements from the given collection. |
boolean |
isEmpty()
|
Iterator |
iterator()
Delegates to the corresponding type-specific method. |
boolean |
rem(Object k)
|
boolean |
remove(Object ok)
|
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. |
Object[] |
toArray()
|
Object[] |
toArray(Object[] a)
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface it.unimi.dsi.fastutil.objects.ReferenceCollection |
objectIterator |
| Methods inherited from interface java.util.Collection |
contains, equals, hashCode, size |
| Method Detail |
public Object[] toArray()
toArray in interface Collectionpublic Object[] toArray(Object[] a)
toArray in interface Collectionpublic boolean addAll(Collection c)
addAll in interface Collectionc - a collection.
true if this collection changed as a result of the call.public boolean add(Object k)
add in interface Collectionpublic boolean rem(Object k)
public boolean remove(Object ok)
remove in interface Collectionpublic void clear()
clear in interface Collectionpublic Iterator iterator()
iterator in interface Collectionpublic boolean containsAll(Collection c)
containsAll in interface Collectionc - a collection.
true if this collection contains all elements of the argument.public boolean retainAll(Collection c)
retainAll in interface Collectionc - a collection.
true if this collection changed as a result of the call.public boolean removeAll(Collection c)
removeAll in interface Collectionc - a collection.
true if this collection changed as a result of the call.public boolean isEmpty()
isEmpty in interface Collectionpublic String toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||