Example usage for java.nio FloatBuffer hashCode

List of usage examples for java.nio FloatBuffer hashCode

Introduction

In this page you can find the example usage for java.nio FloatBuffer hashCode.

Prototype

@HotSpotIntrinsicCandidate
public native int hashCode();

Source Link

Document

Returns a hash code value for the object.

Usage

From source file:Main.java

public static void main(String[] args) {
    FloatBuffer floatBuffer = FloatBuffer.allocate(10);

    floatBuffer.put(1, 1.23F);/*from   ww w.j a  v  a 2  s  .c  o m*/

    System.out.println(floatBuffer.hashCode());

}