public abstract class AbstractFilter extends Object implements BloomFilter
public boolean contains(String str)
contains 在接口中 BloomFilterstr - 字符串public boolean add(String str)
BloomFilterfalse .如果不存在.先增加这个字符串.再返回trueadd 在接口中 BloomFilterstr - 字符串false .如果不存在返回truepublic abstract int hash(String str)
str - 字符串Copyright © 2023. All rights reserved.