Java IntBuffer.hashCode()
Syntax
IntBuffer.hashCode() has the following syntax.
public int hashCode()
Example
In the following code shows how to use IntBuffer.hashCode() method.
import java.nio.IntBuffer;
// ww w.ja va 2 s . co 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.