Example usage for java.time Year adjustInto

List of usage examples for java.time Year adjustInto

Introduction

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

Prototype

@Override
public Temporal adjustInto(Temporal temporal) 

Source Link

Document

Adjusts the specified temporal object to have this year.

Usage

From source file:Main.java

public static void main(String[] args) {
    Year y = Year.of(2014);
    Temporal l = y.adjustInto(Year.of(2000));
    System.out.println(l);/*from   w  w w  . jav  a  2 s  . c  om*/

}