Example usage for java.time Year with

List of usage examples for java.time Year with

Introduction

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

Prototype

@Override
public Year with(TemporalAdjuster adjuster) 

Source Link

Document

Returns an adjusted copy of this year.

Usage

From source file:Main.java

public static void main(String[] args) {
    Year y = Year.of(2014);
    Year l = y.with(Year.of(2013));
    System.out.println(l);//from w  w  w.j  av a 2  s . co  m

}