Example usage for java.nio CharBuffer hashCode

List of usage examples for java.nio CharBuffer hashCode

Introduction

In this page you can find the example usage for java.nio CharBuffer 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) {
    CharBuffer cb1 = CharBuffer.allocate(50);
    cb1.append("java2s.com");
    cb1.rewind();//  w  w w.  ja va2  s  .  com

    System.out.println(cb1.hashCode());
}