it.unimi.dsi.fastutil.floats
Class FloatSets.UnmodifiableSet
java.lang.Object
it.unimi.dsi.fastutil.floats.FloatCollections.UnmodifiableCollection
it.unimi.dsi.fastutil.floats.FloatSets.UnmodifiableSet
- All Implemented Interfaces:
- FloatCollection, FloatIterable, FloatSet, Serializable, Iterable<Float>, Collection<Float>, Set<Float>
- Direct Known Subclasses:
- FloatSortedSets.UnmodifiableSortedSet
- Enclosing class:
- FloatSets
public static class FloatSets.UnmodifiableSet
- extends FloatCollections.UnmodifiableCollection
- implements FloatSet, Serializable
An unmodifiable wrapper class for sets.
- See Also:
- Serialized Form
Methods inherited from class it.unimi.dsi.fastutil.floats.FloatCollections.UnmodifiableCollection |
add, add, addAll, addAll, clear, contains, contains, containsAll, containsAll, floatIterator, isEmpty, iterator, rem, remove, removeAll, removeAll, retainAll, retainAll, size, toArray, toArray, toArray, toFloatArray, toFloatArray, toString |
Methods inherited from interface it.unimi.dsi.fastutil.floats.FloatCollection |
add, addAll, contains, containsAll, floatIterator, rem, removeAll, retainAll, toArray, toArray, toFloatArray, toFloatArray |
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(float k)
- Description copied from interface:
FloatSet
- 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 FloatSet
- See Also:
Collection.remove(Object)
equals
public boolean equals(Object o)
- Specified by:
equals
in interface Collection<Float>
- Specified by:
equals
in interface Set<Float>
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Specified by:
hashCode
in interface Collection<Float>
- Specified by:
hashCode
in interface Set<Float>
- Overrides:
hashCode
in class Object