Example usage for java.nio.charset Charset hashCode

List of usage examples for java.nio.charset Charset hashCode

Introduction

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

Prototype

public final int hashCode() 

Source Link

Document

Computes a hashcode for this charset.

Usage

From source file:Main.java

public static void main(String[] args) {
    Map<String, Charset> charsets = Charset.availableCharsets();
    Iterator<Charset> iterator = charsets.values().iterator();
    while (iterator.hasNext()) {
        Charset cs = (Charset) iterator.next();
        System.out.println(cs.displayName());
        System.out.println(cs.hashCode());
    }/*from  ww  w.  j  av a 2s . c  o  m*/
}