Example usage for java.sql Timestamp hashCode

List of usage examples for java.sql Timestamp hashCode

Introduction

In this page you can find the example usage for java.sql Timestamp hashCode.

Prototype

@Override
public int hashCode() 

Source Link

Document

The hashCode method uses the underlying java.util.Date implementation and therefore does not include nanos in its computation.

Usage

From source file:Main.java

public static void main(String[] args) {
    java.sql.Timestamp ts2 = java.sql.Timestamp.valueOf("2005-04-06 09:01:10");

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