@@ -53,12 +53,12 @@ private MurmurHash2() {
5353 }
5454
5555 /**
56- * Generates 32 bit hash from byte array with the given length and seed.
56+ * Generates a 32- bit hash from byte array with the given length and seed.
5757 *
58- * @param data byte array to hash
59- * @param length length of the array to hash
60- * @param seed initial seed value
61- * @return 32 bit hash of the given array
58+ * @param data The input byte array
59+ * @param length The length of the array
60+ * @param seed The initial seed value
61+ * @return The 32- bit hash
6262 */
6363 public static int hash32 (final byte [] data , final int length , final int seed ) {
6464 // 'm' and 'r' are mixing constants generated offline.
@@ -105,25 +105,25 @@ public static int hash32(final byte[] data, final int length, final int seed) {
105105 }
106106
107107 /**
108- * Generates 32 bit hash from byte array with the given length and a default seed value.
108+ * Generates a 32- bit hash from byte array with the given length and a default seed value.
109109 * This is a helper method that will produce the same result as:
110110 *
111111 * <pre>
112112 * int seed = 0x9747b28c;
113- * int hash = MurmurHash2.hash32(data, offset, length, seed);
113+ * int hash = MurmurHash2.hash32(data, length, seed);
114114 * </pre>
115115 *
116- * @param data byte array to hash
117- * @param length length of the array to hash
118- * @return 32 bit hash of the given array
116+ * @param data The input byte array
117+ * @param length The length of the array
118+ * @return The 32- bit hash
119119 * @see #hash32(byte[], int, int)
120120 */
121121 public static int hash32 (final byte [] data , final int length ) {
122122 return hash32 (data , length , 0x9747b28c );
123123 }
124124
125125 /**
126- * Generates 32 bit hash from a string with a default seed.
126+ * Generates a 32- bit hash from a string with a default seed.
127127 * The string is converted to bytes using the default encoding.
128128 * This is a helper method that will produce the same result as:
129129 *
@@ -133,8 +133,8 @@ public static int hash32(final byte[] data, final int length) {
133133 * int hash = MurmurHash2.hash32(bytes, bytes.length, seed);
134134 * </pre>
135135 *
136- * @param text string to hash
137- * @return 32 bit hash of the given string
136+ * @param text The input string
137+ * @return The 32- bit hash
138138 * @see #hash32(byte[], int, int)
139139 */
140140 public static int hash32 (final String text ) {
@@ -143,7 +143,7 @@ public static int hash32(final String text) {
143143 }
144144
145145 /**
146- * Generates 32 bit hash from a substring with a default seed value.
146+ * Generates a 32- bit hash from a substring with a default seed value.
147147 * The string is converted to bytes using the default encoding.
148148 * This is a helper method that will produce the same result as:
149149 *
@@ -153,23 +153,23 @@ public static int hash32(final String text) {
153153 * int hash = MurmurHash2.hash32(bytes, bytes.length, seed);
154154 * </pre>
155155 *
156- * @param text string to hash
157- * @param from starting index
158- * @param length length of the substring to hash
159- * @return 32 bit hash of the given string
156+ * @param text The input string
157+ * @param from The starting index
158+ * @param length The length of the substring
159+ * @return The 32- bit hash
160160 * @see #hash32(byte[], int, int)
161161 */
162162 public static int hash32 (final String text , final int from , final int length ) {
163163 return hash32 (text .substring (from , from + length ));
164164 }
165165
166166 /**
167- * Generates 64 bit hash from byte array of the given length and seed.
167+ * Generates a 64- bit hash from byte array of the given length and seed.
168168 *
169- * @param data byte array to hash
170- * @param length length of the array to hash
171- * @param seed initial seed value
172- * @return 64 bit hash of the given array
169+ * @param data The input byte array
170+ * @param length The length of the array
171+ * @param seed The initial seed value
172+ * @return The 64- bit hash of the given array
173173 */
174174 public static long hash64 (final byte [] data , final int length , final int seed ) {
175175 final long m = 0xc6a4a7935bd1e995L ;
@@ -219,25 +219,25 @@ public static long hash64(final byte[] data, final int length, final int seed) {
219219 }
220220
221221 /**
222- * Generates 64 bit hash from byte array with given length and a default seed value.
222+ * Generates a 64- bit hash from byte array with given length and a default seed value.
223223 * This is a helper method that will produce the same result as:
224224 *
225225 * <pre>
226226 * int seed = 0xe17a1465;
227- * int hash = MurmurHash2.hash64(data, offset, length, seed);
227+ * int hash = MurmurHash2.hash64(data, length, seed);
228228 * </pre>
229229 *
230- * @param data byte array to hash
231- * @param length length of the array to hash
232- * @return 64 bit hash of the given string
230+ * @param data The input byte array
231+ * @param length The length of the array
232+ * @return The 64- bit hash
233233 * @see #hash64(byte[], int, int)
234234 */
235235 public static long hash64 (final byte [] data , final int length ) {
236236 return hash64 (data , length , 0xe17a1465 );
237237 }
238238
239239 /**
240- * Generates 64 bit hash from a string with a default seed.
240+ * Generates a 64- bit hash from a string with a default seed.
241241 * The string is converted to bytes using the default encoding.
242242 * This is a helper method that will produce the same result as:
243243 *
@@ -247,8 +247,8 @@ public static long hash64(final byte[] data, final int length) {
247247 * int hash = MurmurHash2.hash64(bytes, bytes.length, seed);
248248 * </pre>
249249 *
250- * @param text string to hash
251- * @return 64 bit hash of the given string
250+ * @param text The input string
251+ * @return The 64- bit hash
252252 * @see #hash64(byte[], int, int)
253253 */
254254 public static long hash64 (final String text ) {
@@ -257,7 +257,7 @@ public static long hash64(final String text) {
257257 }
258258
259259 /**
260- * Generates 64 bit hash from a substring with a default seed value.
260+ * Generates a 64- bit hash from a substring with a default seed value.
261261 * The string is converted to bytes using the default encoding.
262262 * This is a helper method that will produce the same result as:
263263 *
@@ -267,10 +267,10 @@ public static long hash64(final String text) {
267267 * int hash = MurmurHash2.hash64(bytes, bytes.length, seed);
268268 * </pre>
269269 *
270- * @param text string to hash
271- * @param from starting index
272- * @param length length of the substring to hash
273- * @return 64 bit hash of the given array
270+ * @param text The The input string
271+ * @param from The starting index
272+ * @param length The length of the substring
273+ * @return The 64- bit hash
274274 * @see #hash64(byte[], int, int)
275275 */
276276 public static long hash64 (final String text , final int from , final int length ) {
0 commit comments