it.unimi.dsi.fastutil.ints
Class IntSets.SynchronizedSet

java.lang.Object
  extended by it.unimi.dsi.fastutil.ints.IntCollections.SynchronizedCollection
      extended by it.unimi.dsi.fastutil.ints.IntSets.SynchronizedSet
All Implemented Interfaces:
IntCollection, IntIterable, IntSet, Serializable, Iterable<Integer>, Collection<Integer>, Set<Integer>
Direct Known Subclasses:
IntSortedSets.SynchronizedSortedSet
Enclosing class:
IntSets

public static class IntSets.SynchronizedSet
extends IntCollections.SynchronizedCollection
implements IntSet, 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(int k)
          Removes an element from this set.
 
Methods inherited from class it.unimi.dsi.fastutil.ints.IntCollections.SynchronizedCollection
add, add, addAll, addAll, clear, contains, contains, containsAll, containsAll, intIterator, isEmpty, iterator, rem, remove, removeAll, removeAll, retainAll, retainAll, size, toArray, toArray, toArray, toIntArray, toIntArray, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface it.unimi.dsi.fastutil.ints.IntSet
iterator
 
Methods inherited from interface it.unimi.dsi.fastutil.ints.IntCollection
add, addAll, contains, containsAll, intIterator, rem, removeAll, retainAll, toArray, toArray, toIntArray, toIntArray
 
Methods inherited from interface java.util.Set
add, addAll, clear, contains, containsAll, isEmpty, remove, removeAll, retainAll, size, toArray, toArray
 

Field Detail

serialVersionUID

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

remove

public boolean remove(int k)
Description copied from interface: IntSet
Removes an element from this set.

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 IntSet
See Also:
Collection.remove(Object)

equals

public boolean equals(Object o)
Specified by:
equals in interface Collection<Integer>
Specified by:
equals in interface Set<Integer>
Overrides:
equals in class Object

hashCode

public int hashCode()
Specified by:
hashCode in interface Collection<Integer>
Specified by:
hashCode in interface Set<Integer>
Overrides:
hashCode in class Object