Package com.github.jelmerk.knn.util
Class ArrayBitSet
- java.lang.Object
-
- com.github.jelmerk.knn.util.ArrayBitSet
-
- All Implemented Interfaces:
BitSet
,Serializable
public class ArrayBitSet extends Object implements BitSet, Serializable
Bitset.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ArrayBitSet(int count)
Initializes a new instance of theArrayBitSet
class.
-
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
-
ArrayBitSet
public ArrayBitSet(int count)
Initializes a new instance of theArrayBitSet
class.- Parameters:
count
- The number of items in the set.
-
-