min static method
Returns the earlier date of the given two.
x: The first date to compare.y: The second date to compare.
Returns: The earlier date of x or y.
ArgumentException: The two dates have different calendar systems.
Implementation
static LocalDate min(LocalDate x, LocalDate y) {
Preconditions.checkArgument(x.calendar == y.calendar, 'y',
"Only values with the same calendar system can be compared");
return x < y ? x : y;
}