it.unimi.dsi.fastutil.longs
Class LongSets.SynchronizedSet
java.lang.Object
it.unimi.dsi.fastutil.longs.LongCollections.SynchronizedCollection
it.unimi.dsi.fastutil.longs.LongSets.SynchronizedSet
- All Implemented Interfaces:
- LongCollection, LongIterable, LongSet, Serializable, Iterable<Long>, Collection<Long>, Set<Long>
- Direct Known Subclasses:
- LongSortedSets.SynchronizedSortedSet
- Enclosing class:
- LongSets
public static class LongSets.SynchronizedSet
- extends LongCollections.SynchronizedCollection
- implements LongSet, Serializable
A synchronized wrapper class for sets.
- See Also:
- Serialized Form
Methods inherited from class it.unimi.dsi.fastutil.longs.LongCollections.SynchronizedCollection |
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 it.unimi.dsi.fastutil.longs.LongSet |
iterator |
Methods inherited from interface it.unimi.dsi.fastutil.longs.LongCollection |
add, addAll, contains, containsAll, longIterator, rem, removeAll, retainAll, toArray, toArray, toLongArray, toLongArray |
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
LongSets.SynchronizedSet
protected LongSets.SynchronizedSet(LongSet s,
Object sync)
LongSets.SynchronizedSet
protected LongSets.SynchronizedSet(LongSet s)
remove
public boolean remove(long k)
- Description copied from interface:
LongSet
- 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 LongSet
- See Also:
Collection.remove(Object)
equals
public boolean equals(Object o)
- Specified by:
equals
in interface Collection<Long>
- Specified by:
equals
in interface Set<Long>
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Specified by:
hashCode
in interface Collection<Long>
- Specified by:
hashCode
in interface Set<Long>
- Overrides:
hashCode
in class Object
Copyright © 2011. All Rights Reserved.