LocalDateKt

public final class LocalDateKt


Summary

Public methods

static final @NonNull LocalDate
localDate(
    int year,
    @IntRange(from = 1, to = 12) int month,
    @IntRange(from = 1, to = 31) int day
)

Builds a new LocalDate.

Public methods

localDate

public static final @NonNull LocalDate localDate(
    int year,
    @IntRange(from = 1, to = 12) int month,
    @IntRange(from = 1, to = 31) int day
)

Builds a new LocalDate.

Parameters
int year

the year field of the LocalDate

@IntRange(from = 1, to = 12) int month

the month field of the LocalDate

@IntRange(from = 1, to = 31) int day

the day field of the LocalDate

Returns
@NonNull LocalDate

the constructed LocalDate

Throws
java.lang.IllegalArgumentException

If parameters are not within range: 1 <= month<= 12, 1 <= day<= 31, or if the day is not valid for the given month and year.