@Deprecated
public final class Hash
extends java.lang.Object
Constructor and Description |
---|
Hash()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static int |
hashBackward(java.lang.String s)
Deprecated.
Creates a hash for a string.
|
static long |
hashBackwardLong(java.lang.String s)
Deprecated.
Creates a long hash for a string.
|
static int |
hashCode(java.lang.CharSequence s,
int start,
int end)
Deprecated.
Creates a hash code of a string from [start-end)
|
static int |
hashCode(java.lang.String... strings)
Deprecated.
Calculate the hashcode for a series of strings combined as one.
|
static long |
longHash(java.lang.String s)
Deprecated.
64-bit hash, using longs, in stead of ints, for less collisions, for when it matters.
|
static long |
longHash(java.lang.String s,
int start,
int end)
Deprecated.
64-bit hash using longs, starting on index 'start' and including everything before 'end'.
|
static long |
longHashAppend(long hash,
char c)
Deprecated.
Adds a character to an existing hash code.
|
static long |
longLowerHash(java.lang.String s)
Deprecated.
Same as longHash(String), using only lower-case values of letters.
|
static long |
longLowerHash(java.lang.String s,
int start,
int end)
Deprecated.
Long (64-bit) hash, lower-cased, from [start-end)
|
static long |
longLowerHash(java.lang.String s,
int start,
int end,
long hash)
Deprecated.
Long (64-bit) hash, lower-cased, from [start-end)
|
static long |
longLowerHashAppend(long hash,
char c)
Deprecated.
Adds the lower-case equivalent of a character to an existing hash code.
|
static int |
lowerCaseHash(java.lang.String s)
Deprecated.
This is an exact copy of the String
hashCode() function, aside from the lowercasing. |
static int |
lowerCaseHash(java.lang.String s,
int start,
int end)
Deprecated.
Creates a hash code of a lowercase string from [start-end)
|
static int |
lowerCaseSpaceTrimHash(java.lang.String s)
Deprecated.
This is an exact copy of the String
hashCode() function, aside from the lowercasing. |
static int |
lowerCaseSpaceTrimHash(java.lang.String s,
int start,
int end)
Deprecated.
Creates a hash code of a lowercase string from [start-end) ignoring whitespace
|
static int |
nospaceLowerHash(java.lang.String s,
int start,
int end)
Deprecated.
Creates a hash code of a lowercase string with whitespace removed from [start-end)
|
public static final int hashBackward(java.lang.String s)
s
- String to hashpublic static final long hashBackwardLong(java.lang.String s)
s
- the string to hashpublic static final long longHash(java.lang.String s)
s
- The String to hash.public static final long longHash(java.lang.String s, int start, int end)
s
- The string to hash.start
- Where to start the hash.end
- Where to end the hash.public static final long longLowerHash(java.lang.String s)
s
- The string to Hash.public static final long longLowerHash(java.lang.String s, int start, int end)
s
- The string to hash.start
- where to start hashing.end
- Where to stop hashing.public static final long longLowerHash(java.lang.String s, int start, int end, long hash)
s
- The string to hash.start
- where to start hashing.end
- Where to stop hashing.public static final long longLowerHashAppend(long hash, char c)
hash
- the existing hash codec
- the character to addpublic static final long longHashAppend(long hash, char c)
hash
- the existing hash codec
- the character to addpublic static final int lowerCaseHash(java.lang.String s)
hashCode()
function, aside from the lowercasing.s
- string to be hashedpublic static final int lowerCaseHash(java.lang.String s, int start, int end)
s
- string to be hashedstart
- the starting indexend
- the ending indexpublic static final int hashCode(java.lang.CharSequence s, int start, int end)
s
- string to be hashedstart
- the starting indexend
- the ending indexpublic static final int nospaceLowerHash(java.lang.String s, int start, int end)
s
- string to be hashedstart
- the starting indexend
- the ending indexpublic static final int lowerCaseSpaceTrimHash(java.lang.String s)
hashCode()
function, aside from the lowercasing. No, it's not. It also ignores
consecutive whitespace.s
- string to be hashedpublic static final int lowerCaseSpaceTrimHash(java.lang.String s, int start, int end)
s
- string to be hashedstart
- the starting indexend
- the ending indexpublic static final int hashCode(java.lang.String... strings)
strings
- Varargs array of Strings.