Example usage for java.time YearMonth range

List of usage examples for java.time YearMonth range

Introduction

In this page you can find the example usage for java.time YearMonth range.

Prototype

@Override
public ValueRange range(TemporalField field) 

Source Link

Document

Gets the range of valid values for the specified field.

Usage

From source file:Main.java

public static void main(String[] args) {
    YearMonth y = YearMonth.now();
    ValueRange m = y.range(ChronoField.YEAR);
    System.out.println(m);/*  ww w.  j  a  v a  2s .com*/

}