Example usage for java.time Instant hashCode

List of usage examples for java.time Instant hashCode

Introduction

In this page you can find the example usage for java.time Instant hashCode.

Prototype

@Override
public int hashCode() 

Source Link

Document

Returns a hash code for this instant.

Usage

From source file:Main.java

public static void main(String[] args) {
    Instant instant = Instant.parse("2014-12-03T10:15:30.00Z");
    System.out.println(instant.hashCode());
    System.out.println(instant.getEpochSecond());
}