Example usage for java.util GregorianCalendar hashCode

List of usage examples for java.util GregorianCalendar hashCode

Introduction

In this page you can find the example usage for java.util GregorianCalendar hashCode.

Prototype

@Override
public int hashCode() 

Source Link

Document

Generates the hash code for this GregorianCalendar object.

Usage

From source file:Main.java

public static void main(String[] args) {
    GregorianCalendar cal = new GregorianCalendar();

    // print a hashcode for cal
    System.out.println(cal.hashCode());

}

From source file:Main.java

public static void main(String[] args) {

    GregorianCalendar cal = (GregorianCalendar) GregorianCalendar.getInstance();

    // print a hashcode for this calendar
    System.out.println("Hash Code:" + cal.hashCode());

}