Class AbstractMetroHash<R extends AbstractMetroHash<R>>
java.lang.Object
org.miaixz.bus.core.codec.hash.metro.AbstractMetroHash<R>
- Type Parameters:
R- 返回值类型,为this类型
- All Implemented Interfaces:
MetroHash<R>
- Direct Known Subclasses:
MetroHash128,MetroHash64
public abstract class AbstractMetroHash<R extends AbstractMetroHash<R>>
extends Object
implements MetroHash<R>
Apache 发布的MetroHash算法抽象实现,是一组用于非加密用例的最先进的哈希函数。
除了卓越的性能外,他们还以算法生成而著称。
官方实现:https://github.com/jandrewrogers/MetroHash 官方文档:http://www.jandrewrogers.com/2015/05/27/metrohash/ 来自:https://github.com/postamar/java-metrohash/
- Since:
- Java 17+
- Author:
- Kimi Liu
-
Constructor Details
-
AbstractMetroHash
public AbstractMetroHash(long seed) 使用指定种子构造- Parameters:
seed- 种子
-
-
Method Details
-
apply
Description copied from interface:MetroHash将给定的ByteBuffer中的数据追加计算hash值 此方法会更新hash值状态- Specified by:
applyin interfaceMetroHash<R extends AbstractMetroHash<R>>- Parameters:
input- 内容- Returns:
- this
-