Example usage for java.time DayOfWeek range

List of usage examples for java.time DayOfWeek range

Introduction

In this page you can find the example usage for java.time DayOfWeek 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) {
    LocalDate localDate = LocalDate.of(2014, Month.JUNE, 21);
    DayOfWeek dayOfWeek = DayOfWeek.from(localDate);
    System.out.println(dayOfWeek.range(ChronoField.DAY_OF_WEEK));
}