it.unimi.dsi.fastutil.longs
Class LongSets.UnmodifiableSet
java.lang.Object
it.unimi.dsi.fastutil.longs.LongCollections.UnmodifiableCollection
it.unimi.dsi.fastutil.longs.LongSets.UnmodifiableSet
- All Implemented Interfaces:
- Collection, LongCollection, LongSet, Serializable, Set
- Direct Known Subclasses:
- LongSortedSets.UnmodifiableSortedSet
- Enclosing class:
- LongSets
- public static class LongSets.UnmodifiableSet
- extends LongCollections.UnmodifiableCollection
- implements LongSet, Serializable
An unmodifiable wrapper class for sets.
- See Also:
- Serialized Form
Method Summary |
boolean |
equals(Object o)
|
int |
hashCode()
|
boolean |
remove(long k)
Note that the corresponding method of the type-specific collection is rem() .
|
Methods inherited from class it.unimi.dsi.fastutil.longs.LongCollections.UnmodifiableCollection |
add, add, addAll, addAll, clear, contains, contains, containsAll, containsAll, isEmpty, iterator, longIterator, rem, remove, removeAll, removeAll, retainAll, retainAll, size, toArray, toArray, toArray, toLongArray, toLongArray, toString |
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.longs.LongCollection |
add, addAll, contains, containsAll, longIterator, rem, removeAll, retainAll, toArray, toLongArray, toLongArray |
serialVersionUID
public static final long serialVersionUID
- See Also:
- Constant Field Values
remove
public boolean remove(long k)
- Description copied from interface:
LongSet
- 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 LongSet
- 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