MCPcopy Create free account
hub / github.com/davidgiven/luje / hashCode

Method hashCode

lib/java/nio/FloatBuffer.java:345–353  ·  view source on GitHub ↗

Calculates this buffer's hash code from the remaining chars. The position, limit, capacity and mark don't affect the hash code. @return the hash code calculated from the remaining floats.

()

Source from the content-addressed store, hash-verified

343 * @return the hash code calculated from the remaining floats.
344 */
345 @Override
346 public int hashCode() {
347 int myPosition = position;
348 int hash = 0;
349 while (myPosition < limit) {
350 hash = hash + Float.floatToIntBits(get(myPosition++));
351 }
352 return hash;
353 }
354
355 /**
356 * Indicates whether this buffer is direct. A direct buffer will try its

Callers

nothing calls this directly

Calls 2

floatToIntBitsMethod · 0.95
getMethod · 0.95

Tested by

no test coverage detected