tuweni / org.apache.tuweni.toml / TomlTable / getLocalDate

getLocalDate

@Nullable open fun getLocalDate(dottedKey: String!): LocalDate? (source)

Get a local date from the TOML document.

Parameters

dottedKey - String!: A dotted key (e.g. "server.address.port").

Exceptions

IllegalArgumentException - If the key cannot be parsed.

TomlInvalidTypeException - If the value is present but not a LocalDate, or any element of the path preceding the final key is not a table.

Return
LocalDate?: The value, or null if no value was set in the TOML document.

@Nullable open fun getLocalDate(path: MutableList<String!>!): LocalDate? (source)

Get a local date from the TOML document.

Parameters

path - MutableList<String!>!: The key path.

Exceptions

TomlInvalidTypeException - If the value is present but not a LocalDate, or any element of the path preceding the final key is not a table.

Return
LocalDate?: The value, or null if no value was set in the TOML document.

open fun getLocalDate(dottedKey: String!, defaultValue: Supplier<LocalDate!>!): LocalDate! (source)

Get a local date from the TOML document, or return a default.

Parameters

dottedKey - String!: A dotted key (e.g. "server.address.port").

defaultValue - Supplier<LocalDate!>!: A supplier for the default value.

Exceptions

IllegalArgumentException - If the key cannot be parsed.

TomlInvalidTypeException - If the value is present but not a LocalDate, or any element of the path preceding the final key is not a table.

Return
LocalDate!: The value, or the default.

open fun getLocalDate(path: MutableList<String!>!, defaultValue: Supplier<LocalDate!>!): LocalDate! (source)

Get a local date from the TOML document, or return a default.

Parameters

path - MutableList<String!>!: The key path.

defaultValue - Supplier<LocalDate!>!: A supplier for the default value.

Exceptions

TomlInvalidTypeException - If the value is present but not a LocalDate, or any element of the path preceding the final key is not a table.

Return
LocalDate!: The value, or the default.