Example usage for java.text SimpleDateFormat hashCode

List of usage examples for java.text SimpleDateFormat hashCode

Introduction

In this page you can find the example usage for java.text SimpleDateFormat hashCode.

Prototype

@Override
public int hashCode() 

Source Link

Document

Returns the hash code value for this SimpleDateFormat object.

Usage

From source file:Main.java

public static void main(String[] args) throws Exception {
    SimpleDateFormat formatter = new SimpleDateFormat();

    String date = formatter.format(new Date());
    System.out.println(formatter.hashCode());
    System.out.println("date = " + date);
}