- All Implemented Interfaces:
Serializable, BitMap
过滤器BitMap在32位机器上.这个类能发生更好的效果.一般情况下建议使用此类
- Since:
- Java 17+
- Author:
- Kimi Liu
- See Also:
-
-
-
Constructor Summary
Constructors
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
IntMap
public IntMap()
构造
-
IntMap
public IntMap(int size)
构造
- Parameters:
size - 容量
-
Method Details
-
add
public void add(long i)
Description copied from interface: BitMap
加入值
- Specified by:
add in interface BitMap
- Parameters:
i - 值
-
contains
public boolean contains(long i)
Description copied from interface: BitMap
检查是否包含值
- Specified by:
contains in interface BitMap
- Parameters:
i - 值
- Returns:
- 是否包含
-
remove
public void remove(long i)
Description copied from interface: BitMap
移除值
- Specified by:
remove in interface BitMap
- Parameters:
i - 值