Example usage for java.time Year isBefore

List of usage examples for java.time Year isBefore

Introduction

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

Prototype

public boolean isBefore(Year other) 

Source Link

Document

Checks if this year is before the specified year.

Usage

From source file:Main.java

public static void main(String[] args) {

    Year y = Year.of(2014);

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

}