In this tutorial, we will see the use of hashCode() method of LongBuffer class in java.
LongBuffer API:
The java.nio.LongBuffer class extends java.nio.Buffer class. It provides the following methods:
| Return type | Method | Description |
| static LongBuffer | allocate( int capacity) | The allocate(..) method allocate a long buffer of given capacity. |
| int | hashCode() | The hashCode() method returns current has code of long buffer. It depends upon remaining elements. |
import java.nio.*;
|
|
C:\>java HashCode Hash Code of long buffer : -394403839 New hash code of long buffer : 2059922497 |