it.unimi.dsi.fastutil.chars
Class CharSets.UnmodifiableSet

java.lang.Object
  extended by it.unimi.dsi.fastutil.chars.CharCollections.UnmodifiableCollection
      extended by it.unimi.dsi.fastutil.chars.CharSets.UnmodifiableSet
All Implemented Interfaces:
CharCollection, CharIterable, CharSet, java.io.Serializable, java.lang.Iterable<java.lang.Character>, java.util.Collection<java.lang.Character>, java.util.Set<java.lang.Character>
Direct Known Subclasses:
CharSortedSets.UnmodifiableSortedSet
Enclosing class:
CharSets

public static class CharSets.UnmodifiableSet
extends CharCollections.UnmodifiableCollection
implements CharSet, java.io.Serializable

An unmodifiable wrapper class for sets.

See Also:
Serialized Form

Method Summary
 boolean equals(java.lang.Object o)
           
 int hashCode()
           
 boolean remove(char k)
          Removes an element from this set.
 
Methods inherited from class it.unimi.dsi.fastutil.chars.CharCollections.UnmodifiableCollection
add, add, addAll, addAll, charIterator, clear, contains, contains, containsAll, containsAll, isEmpty, iterator, rem, remove, removeAll, removeAll, retainAll, retainAll, size, toArray, toArray, toArray, toCharArray, toCharArray, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface it.unimi.dsi.fastutil.chars.CharSet
iterator
 
Methods inherited from interface it.unimi.dsi.fastutil.chars.CharCollection
add, addAll, charIterator, contains, containsAll, rem, removeAll, retainAll, toArray, toArray, toCharArray, toCharArray
 
Methods inherited from interface java.util.Set
add, addAll, clear, contains, containsAll, isEmpty, remove, removeAll, retainAll, size, toArray, toArray
 

Method Detail

remove

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

equals

public boolean equals(java.lang.Object o)
Specified by:
equals in interface java.util.Collection<java.lang.Character>
Specified by:
equals in interface java.util.Set<java.lang.Character>
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Specified by:
hashCode in interface java.util.Collection<java.lang.Character>
Specified by:
hashCode in interface java.util.Set<java.lang.Character>
Overrides:
hashCode in class java.lang.Object