java.lang.Object | |
↳ | com.mongodb.util.Hash |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates a hash for a string.
| |||||||||||
Creates a long hash for a string.
| |||||||||||
Calculate the hashcode for a series of strings combined as one.
| |||||||||||
Creates a hash code of a string from [start-end)
| |||||||||||
64-bit hash, using longs, in stead of ints, for less collisions, for when it matters.
| |||||||||||
64-bit hash using longs, starting on index 'start' and including everything before 'end'.
| |||||||||||
Adds a character to an existing hash code.
| |||||||||||
Same as longHash(String), using only lower-case values of letters.
| |||||||||||
Long (64-bit) hash, lower-cased, from [start-end)
| |||||||||||
Long (64-bit) hash, lower-cased, from [start-end)
| |||||||||||
Adds the lower-case equivalent of a character to an existing hash code.
| |||||||||||
This is an exact copy of the String
hashCode() function, aside from the lowercasing. | |||||||||||
Creates a hash code of a lowercase string from [start-end)
| |||||||||||
This is an exact copy of the String
hashCode() function, aside from the lowercasing. | |||||||||||
Creates a hash code of a lowercase string from [start-end) ignoring whitespace
| |||||||||||
Creates a hash code of a lowercase string with whitespace removed from [start-end)
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Creates a hash for a string.
s | String to hash |
---|
Creates a long hash for a string.
s | the string to hash |
---|
Calculate the hashcode for a series of strings combined as one.
strings | Varargs array of Strings. |
---|
Creates a hash code of a string from [start-end)
s | string to be hashed |
---|---|
start | the starting index |
end | the ending index |
64-bit hash, using longs, in stead of ints, for less collisions, for when it matters. Calls longHash( s , 0 , s.length() )
s | The String to hash. |
---|
64-bit hash using longs, starting on index 'start' and including everything before 'end'.
s | The string to hash. |
---|---|
start | Where to start the hash. |
end | Where to end the hash. |
Adds a character to an existing hash code.
hash | the existing hash code |
---|---|
c | the character to add |
Same as longHash(String), using only lower-case values of letters. Calls longhash( s , 0 , s.length() ).
s | The string to Hash. |
---|
Long (64-bit) hash, lower-cased, from [start-end)
s | The string to hash. |
---|---|
start | where to start hashing. |
end | Where to stop hashing. |
Long (64-bit) hash, lower-cased, from [start-end)
s | The string to hash. |
---|---|
start | where to start hashing. |
end | Where to stop hashing. |
Adds the lower-case equivalent of a character to an existing hash code.
hash | the existing hash code |
---|---|
c | the character to add |
This is an exact copy of the String hashCode()
function, aside from the lowercasing.
s | string to be hashed |
---|
Creates a hash code of a lowercase string from [start-end)
s | string to be hashed |
---|---|
start | the starting index |
end | the ending index |
This is an exact copy of the String hashCode()
function, aside from the lowercasing.
No, it's not. It also ignores consecutive whitespace.
s | string to be hashed |
---|
Creates a hash code of a lowercase string from [start-end) ignoring whitespace
s | string to be hashed |
---|---|
start | the starting index |
end | the ending index |
Creates a hash code of a lowercase string with whitespace removed from [start-end)
s | string to be hashed |
---|---|
start | the starting index |
end | the ending index |