|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectit.unimi.dsi.fastutil.objects.AbstractObjectCollection
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.ObjectCollection |
objectIterator |
Methods inherited from interface java.util.Collection |
contains, equals, hashCode, size |
Method Detail |
public Object[] toArray()
toArray
in interface Collection
public Object[] toArray(Object[] a)
toArray
in interface Collection
public boolean addAll(Collection c)
addAll
in interface Collection
c
- a collection.
true
if this collection changed as a result of the call.public boolean add(Object k)
add
in interface Collection
public boolean rem(Object k)
public boolean remove(Object ok)
remove
in interface Collection
public void clear()
clear
in interface Collection
public Iterator iterator()
iterator
in interface Collection
public boolean containsAll(Collection c)
containsAll
in interface Collection
c
- a collection.
true
if this collection contains all elements of the argument.public boolean retainAll(Collection c)
retainAll
in interface Collection
c
- a collection.
true
if this collection changed as a result of the call.public boolean removeAll(Collection c)
removeAll
in interface Collection
c
- a collection.
true
if this collection changed as a result of the call.public boolean isEmpty()
isEmpty
in interface Collection
public String toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |