Example usage for java.time Year query

List of usage examples for java.time Year query

Introduction

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

Prototype

@SuppressWarnings("unchecked")
@Override
public <R> R query(TemporalQuery<R> query) 

Source Link

Document

Queries this year using the specified query.

Usage

From source file:Main.java

public static void main(String[] args) {
    Year y = Year.of(2014);
    Chronology l = y.query(TemporalQueries.chronology());
    System.out.println(l);/*from   w  w  w .  j av a2 s . c o m*/

}