it.unimi.dsi.fastutil.shorts
Class ShortSets.UnmodifiableSet

java.lang.Object
  extended byit.unimi.dsi.fastutil.shorts.ShortCollections.UnmodifiableCollection
      extended byit.unimi.dsi.fastutil.shorts.ShortSets.UnmodifiableSet
All Implemented Interfaces:
Collection, Serializable, Set, ShortCollection, ShortSet
Direct Known Subclasses:
ShortSortedSets.UnmodifiableSortedSet
Enclosing class:
ShortSets

public static class ShortSets.UnmodifiableSet
extends ShortCollections.UnmodifiableCollection
implements ShortSet, Serializable

An unmodifiable wrapper class for sets.

See Also:
Serialized Form

Field Summary
static long serialVersionUID
           
 
Method Summary
 boolean equals(Object o)
           
 int hashCode()
           
 boolean remove(short k)
          Note that the corresponding method of the type-specific collection is rem().
 
Methods inherited from class it.unimi.dsi.fastutil.shorts.ShortCollections.UnmodifiableCollection
add, add, addAll, addAll, clear, contains, contains, containsAll, containsAll, isEmpty, iterator, rem, remove, removeAll, removeAll, retainAll, retainAll, shortIterator, size, toArray, toArray, toArray, toShortArray, toShortArray, 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, remove, removeAll, retainAll, size, toArray, toArray
 
Methods inherited from interface it.unimi.dsi.fastutil.shorts.ShortCollection
add, addAll, contains, containsAll, rem, removeAll, retainAll, shortIterator, toArray, toShortArray, toShortArray
 

Field Detail

serialVersionUID

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

remove

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

equals

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

hashCode

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