it.unimi.dsi.fastutil.objects
Class ReferenceSets.UnmodifiableSet<K>
java.lang.Object
it.unimi.dsi.fastutil.objects.ReferenceCollections.UnmodifiableCollection<K>
it.unimi.dsi.fastutil.objects.ReferenceSets.UnmodifiableSet<K>
- All Implemented Interfaces:
- ObjectIterable<K>, ReferenceCollection<K>, ReferenceSet<K>, Serializable, Iterable<K>, Collection<K>, Set<K>
- Direct Known Subclasses:
- ReferenceSortedSets.UnmodifiableSortedSet
- Enclosing class:
- ReferenceSets
public static class ReferenceSets.UnmodifiableSet<K>
- extends ReferenceCollections.UnmodifiableCollection<K>
- implements ReferenceSet<K>, Serializable
An unmodifiable wrapper class for sets.
- See Also:
- Serialized Form
Methods inherited from class it.unimi.dsi.fastutil.objects.ReferenceCollections.UnmodifiableCollection |
add, addAll, clear, contains, containsAll, isEmpty, iterator, objectIterator, removeAll, retainAll, size, toArray, toArray, toString |
Methods inherited from interface java.util.Set |
add, addAll, clear, contains, containsAll, isEmpty, removeAll, retainAll, size, toArray, toArray |
serialVersionUID
public static final long serialVersionUID
- See Also:
- Constant Field Values
ReferenceSets.UnmodifiableSet
protected ReferenceSets.UnmodifiableSet(ReferenceSet<K> s)
remove
public boolean remove(Object k)
- Description copied from interface:
ReferenceSet
- 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 ReferenceSet<K>
- Specified by:
remove
in interface Collection<K>
- Specified by:
remove
in interface Set<K>
- Overrides:
remove
in class ReferenceCollections.UnmodifiableCollection<K>
- See Also:
Collection.remove(Object)
equals
public boolean equals(Object o)
- Specified by:
equals
in interface Collection<K>
- Specified by:
equals
in interface Set<K>
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Specified by:
hashCode
in interface Collection<K>
- Specified by:
hashCode
in interface Set<K>
- Overrides:
hashCode
in class Object
Copyright © 2011. All Rights Reserved.