Example usage for java.nio ShortBuffer hashCode

List of usage examples for java.nio ShortBuffer hashCode

Introduction

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

Prototype

public int hashCode() 

Source Link

Document

Calculates this buffer's hash code from the remaining chars.

Usage

From source file:Main.java

public static void main(String[] args) {
    ShortBuffer bb = ShortBuffer.allocate(10);
    bb.put((short) 100);
    System.out.println(bb.hashCode());

}