Example usage for java.time Clock hashCode

List of usage examples for java.time Clock hashCode

Introduction

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

Prototype

@Override
public int hashCode() 

Source Link

Document

A hash code for this clock.

Usage

From source file:Main.java

public static void main(String[] args) {
    Clock clock = Clock.systemUTC();
    Clock clock1 = Clock.systemDefaultZone();
    System.out.println(clock.hashCode());
    System.out.println(clock1.hashCode());
}