Example usage for java.time Year hashCode

List of usage examples for java.time Year hashCode

Introduction

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

Prototype

@Override
public int hashCode() 

Source Link

Document

A hash code for this year.

Usage

From source file:Main.java

public static void main(String[] args) {

    Year y = Year.of(2014);

    System.out.println(y.hashCode());

}