|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectit.unimi.dsi.fastutil.objects.AbstractReferenceCollection<K>
it.unimi.dsi.fastutil.objects.AbstractReferenceSet<K>
public abstract class AbstractReferenceSet<K>
An abstract class providing basic methods for sets implementing a type-specific interface.
Method Summary | |
---|---|
boolean |
equals(java.lang.Object o)
|
int |
hashCode()
Returns a hash code for this set. |
abstract ObjectIterator<K> |
iterator()
Returns a type-specific iterator. |
boolean |
remove(java.lang.Object k)
Removes an element from this set. |
Methods inherited from class it.unimi.dsi.fastutil.objects.AbstractReferenceCollection |
---|
add, addAll, clear, containsAll, isEmpty, objectIterator, removeAll, retainAll, toArray, toArray, toString |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface it.unimi.dsi.fastutil.objects.ReferenceCollection |
---|
objectIterator, toArray |
Methods inherited from interface java.util.Set |
---|
add, addAll, clear, contains, containsAll, isEmpty, removeAll, retainAll, size, toArray, toArray |
Method Detail |
---|
public abstract ObjectIterator<K> iterator()
ObjectIterable
Iterable.iterator()
.
iterator
in interface ObjectIterable<K>
iterator
in interface ReferenceCollection<K>
iterator
in interface ReferenceSet<K>
iterator
in interface java.lang.Iterable<K>
iterator
in interface java.util.Collection<K>
iterator
in interface java.util.Set<K>
iterator
in class AbstractReferenceCollection<K>
public boolean equals(java.lang.Object o)
equals
in interface java.util.Collection<K>
equals
in interface java.util.Set<K>
equals
in class java.lang.Object
public int hashCode()
hashCode
in interface java.util.Collection<K>
hashCode
in interface java.util.Set<K>
hashCode
in class java.lang.Object
public boolean remove(java.lang.Object k)
ReferenceSet
Note that the corresponding method of the type-specific collection is rem()
.
This unfortunate situation is caused by the clash
with the similarly named index-based method in the List
interface.
remove
in interface ReferenceSet<K>
remove
in interface java.util.Collection<K>
remove
in interface java.util.Set<K>
remove
in class AbstractReferenceCollection<K>
Collection.remove(Object)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |