public class BitHashSet extends Object implements Iterable<Integer>
Constructor and Description |
---|
BitHashSet() |
BitHashSet(int cacheSize) |
Modifier and Type | Method and Description |
---|---|
boolean |
add(Integer elementBit) |
int |
cachedSize() |
boolean |
contains(Integer elementBit) |
boolean |
isEmpty() |
Iterator<Integer> |
iterator()
This function is not thread-safe, need to synchronized when
iterate through this set.
|
boolean |
remove(Integer elementBit) |
int |
remove(Set<Integer> bitSet,
BitSet bits)
Remove the watches, and return the number of watches being removed.
|
int |
size() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public boolean add(Integer elementBit)
public int remove(Set<Integer> bitSet, BitSet bits)
public boolean remove(Integer elementBit)
public boolean contains(Integer elementBit)
public int size()
public Iterator<Integer> iterator()
public int cachedSize()
public boolean isEmpty()
Copyright © 2008–2023 The Apache Software Foundation. All rights reserved.