it.unimi.dsi.fastutil.chars
Class CharSets.SynchronizedSet
java.lang.Object
it.unimi.dsi.fastutil.chars.CharCollections.SynchronizedCollection
it.unimi.dsi.fastutil.chars.CharSets.SynchronizedSet
- All Implemented Interfaces:
- CharCollection, CharIterable, CharSet, Serializable, Iterable<Character>, Collection<Character>, Set<Character>
- Direct Known Subclasses:
- CharSortedSets.SynchronizedSortedSet
- Enclosing class:
- CharSets
public static class CharSets.SynchronizedSet
- extends CharCollections.SynchronizedCollection
- implements CharSet, Serializable
A synchronized wrapper class for sets.
- See Also:
- Serialized Form
Methods inherited from class it.unimi.dsi.fastutil.chars.CharCollections.SynchronizedCollection |
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 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 |
serialVersionUID
public static final long serialVersionUID
- See Also:
- Constant Field Values
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(Object o)
- Specified by:
equals
in interface Collection<Character>
- Specified by:
equals
in interface Set<Character>
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Specified by:
hashCode
in interface Collection<Character>
- Specified by:
hashCode
in interface Set<Character>
- Overrides:
hashCode
in class Object