public abstract class ClientResolverUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static int[] |
sbox |
| Modifier | Constructor and Description |
|---|---|
protected |
ClientResolverUtils() |
| Modifier and Type | Method and Description |
|---|---|
static int |
addBytesToHash(byte[] bytes,
int hash)
The below hash generation uses substitution box technique to generate
hashcodes.
|
static int |
addBytesToHash(byte[] bytes,
int offset,
int length,
int hash)
The below hash generation uses substitution box technique to generate
hashcodes.
|
static int |
addByteToHash(byte b,
int hash) |
static int |
addCharsToHash(char[] chars,
int offset,
int length,
int hash) |
static int |
addIntToHash(int val,
int hash) |
static int |
addLongToHash(long val,
int hash) |
static int |
addStringToHash(String s,
int offset,
int length,
int hash) |
public static final int addBytesToHash(byte[] bytes,
int hash)
sbox array
are from http://home.comcast.net/~bretm/hash/10.html.public static final int addBytesToHash(byte[] bytes,
int offset,
int length,
int hash)
sbox array
are from http://home.comcast.net/~bretm/hash/10.html.public static final int addStringToHash(String s, int offset, int length, int hash)
public static final int addCharsToHash(char[] chars,
int offset,
int length,
int hash)
public static final int addByteToHash(byte b,
int hash)
public static final int addIntToHash(int val,
int hash)
public static final int addLongToHash(long val,
int hash)
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.