Example usage for java.time LocalDate isSupported

List of usage examples for java.time LocalDate isSupported

Introduction

In this page you can find the example usage for java.time LocalDate isSupported.

Prototype

@Override 
public boolean isSupported(TemporalUnit unit) 

Source Link

Document

Checks if the specified unit is supported.

Usage

From source file:Main.java

public static void main(String[] args) {
    LocalDate a = LocalDate.of(2014, 6, 30);

    System.out.println(a.isSupported(ChronoUnit.DAYS));
}

From source file:Main.java

public static void main(String[] args) {
    LocalDate a = LocalDate.of(2014, 6, 30);

    System.out.println(a.isSupported(ChronoField.DAY_OF_YEAR));
}