IntBuffer.hashCode() has the following syntax.
public int hashCode()
In the following code shows how to use IntBuffer.hashCode() method.
import java.nio.IntBuffer; // w w w . j ava2s . c o m public class Main { public static void main(String[] args) { IntBuffer bb = IntBuffer.allocate(10); bb.put(100); System.out.println(bb.hashCode()); } }
The code above generates the following result.