it.unimi.dsi.fastutil.ints
Class IntSets.UnmodifiableSet
java.lang.Object
it.unimi.dsi.fastutil.ints.IntCollections.UnmodifiableCollection
it.unimi.dsi.fastutil.ints.IntSets.UnmodifiableSet
- All Implemented Interfaces:
- IntCollection, IntIterable, IntSet, Serializable, Iterable<Integer>, Collection<Integer>, Set<Integer>
- Direct Known Subclasses:
- IntSortedSets.UnmodifiableSortedSet
- Enclosing class:
- IntSets
public static class IntSets.UnmodifiableSet
- extends IntCollections.UnmodifiableCollection
- implements IntSet, Serializable
An unmodifiable wrapper class for sets.
- See Also:
- Serialized Form
| Methods inherited from class it.unimi.dsi.fastutil.ints.IntCollections.UnmodifiableCollection |
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 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 |
serialVersionUID
public static final long serialVersionUID
- See Also:
- Constant Field Values
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