Example usage for java.time Year equals

List of usage examples for java.time Year equals

Introduction

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

Prototype

@Override
public boolean equals(Object obj) 

Source Link

Document

Checks if this year is equal to another year.

Usage

From source file:Main.java

public static void main(String[] args) {

    Year y = Year.of(2014);

    System.out.println(y.equals(Year.of(2015)));

}