public static enum IsoDateParsingUtils.IsoDateFormat extends Enum<IsoDateParsingUtils.IsoDateFormat>
Enum Constant and Description |
---|
YEAR |
YEAR_MONTH |
YEAR_MONTH_DAY |
Modifier and Type | Method and Description |
---|---|
LocalDate |
earliestDate(String value)
Returns the earliest date of a possible closed range, e.g.
|
boolean |
isValidDate(String value)
Checks if the parameter "value" can be parsed using the date format.
|
LocalDate |
latestDate(String value)
Returns the latest date of a possible open range, e.g.
|
TemporalAccessor |
parseDate(String value)
Try to parse a string with the current date format.
|
static IsoDateParsingUtils.IsoDateFormat |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static IsoDateParsingUtils.IsoDateFormat[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final IsoDateParsingUtils.IsoDateFormat YEAR_MONTH_DAY
public static final IsoDateParsingUtils.IsoDateFormat YEAR_MONTH
public static final IsoDateParsingUtils.IsoDateFormat YEAR
public static IsoDateParsingUtils.IsoDateFormat[] values()
for (IsoDateParsingUtils.IsoDateFormat c : IsoDateParsingUtils.IsoDateFormat.values()) System.out.println(c);
public static IsoDateParsingUtils.IsoDateFormat valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic boolean isValidDate(String value)
public TemporalAccessor parseDate(String value) throws ParseException
ParseException
public LocalDate earliestDate(String value) throws ParseException
ParseException
public LocalDate latestDate(String value) throws ParseException
ParseException
Copyright © 2024 Global Biodiversity Information Facility (GBIF). All rights reserved.