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 chars.
()
| 341 | * @return the hash code calculated from the remaining chars. |
| 342 | */ |
| 343 | @Override |
| 344 | public int hashCode() { |
| 345 | int myPosition = position; |
| 346 | int hash = 0; |
| 347 | long l; |
| 348 | while (myPosition < limit) { |
| 349 | l = Double.doubleToLongBits(get(myPosition++)); |
| 350 | hash = hash + ((int) l) ^ ((int) (l >> 32)); |
| 351 | } |
| 352 | return hash; |
| 353 | } |
| 354 | |
| 355 | /** |
| 356 | * Indicates whether this buffer is direct. A direct buffer will try its |
nothing calls this directly
no test coverage detected