public class HashUtils extends Object
Constructor and Description |
---|
HashUtils() |
Modifier and Type | Method and Description |
---|---|
static int |
hash31(byte[] src,
int start,
int len)
每位乘以31相加
|
static int |
hashFNV1(byte[] src) |
static int |
hashFNV1(byte[] src,
int start,
int len)
FNV1算法
|
public static int hashFNV1(byte[] src)
src
- public static int hashFNV1(byte[] src, int start, int len)
src
- start
- len
- public static int hash31(byte[] src, int start, int len)
src
- start
- len
- Copyright © 2021. All rights reserved.