it.unimi.dsi.fastutil.objects
Class ReferenceSets.SynchronizedSet

java.lang.Object
  extended byit.unimi.dsi.fastutil.objects.ReferenceCollections.SynchronizedCollection
      extended byit.unimi.dsi.fastutil.objects.ReferenceSets.SynchronizedSet
All Implemented Interfaces:
Collection, ReferenceCollection, ReferenceSet, Serializable, Set
Direct Known Subclasses:
ReferenceSortedSets.SynchronizedSortedSet
Enclosing class:
ReferenceSets

public static class ReferenceSets.SynchronizedSet
extends ReferenceCollections.SynchronizedCollection
implements ReferenceSet, Serializable

A synchronized wrapper class for sets.

See Also:
Serialized Form

Field Summary
static long serialVersionUID
           
 
Method Summary
 boolean equals(Object o)
           
 int hashCode()
           
 boolean remove(Object k)
          Note that the corresponding method of the type-specific collection is rem().
 
Methods inherited from class it.unimi.dsi.fastutil.objects.ReferenceCollections.SynchronizedCollection
add, addAll, addAll, clear, contains, containsAll, containsAll, isEmpty, iterator, objectIterator, rem, removeAll, removeAll, retainAll, retainAll, size, toArray, toArray, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Set
add, addAll, clear, contains, containsAll, isEmpty, iterator, removeAll, retainAll, size, toArray, toArray
 
Methods inherited from interface it.unimi.dsi.fastutil.objects.ReferenceCollection
objectIterator
 

Field Detail

serialVersionUID

public static final long serialVersionUID
See Also:
Constant Field Values
Method Detail

remove

public boolean remove(Object k)
Description copied from interface: 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.

Specified by:
remove in interface ReferenceSet
Overrides:
remove in class ReferenceCollections.SynchronizedCollection

equals

public boolean equals(Object o)
Specified by:
equals in interface Set

hashCode

public int hashCode()
Specified by:
hashCode in interface Set