Package com.github.jelmerk.knn.util
Class SynchronizedBitSet
- java.lang.Object
-
- com.github.jelmerk.knn.util.SynchronizedBitSet
-
- All Implemented Interfaces:
BitSet
,Serializable
public class SynchronizedBitSet extends Object implements BitSet, Serializable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SynchronizedBitSet(BitSet delegate)
Constructs a new SynchronizedBitSet.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(int id)
Adds the id to the set.void
clear()
Clears the set.boolean
contains(int id)
Checks whether the id is already in the set.void
remove(int id)
Removes a id from the set.
-
-
-
Constructor Detail
-
SynchronizedBitSet
public SynchronizedBitSet(BitSet delegate)
Constructs a new SynchronizedBitSet.- Parameters:
delegate
- the wrapped bitset
-
-