@Nullable open fun getLocalDateTime(dottedKey: String!): LocalDateTime?
(source)
Get a local date time from the TOML document.
dottedKey
- String!: A dotted key (e.g. "server.address.port"
).
IllegalArgumentException
- If the key cannot be parsed.
TomlInvalidTypeException
- If the value is present but not a LocalDateTime
, or any element of the path preceding the final key is not a table.
Return
LocalDateTime?: The value, or null
if no value was set in the TOML document.
@Nullable open fun getLocalDateTime(path: MutableList<String!>!): LocalDateTime?
(source)
Get a local date time from the TOML document.
path
- MutableList<String!>!: The key path.
TomlInvalidTypeException
- If the value is present but not a LocalDateTime
, or any element of the path preceding the final key is not a table.
Return
LocalDateTime?: The value, or null
if no value was set in the TOML document.
open fun getLocalDateTime(dottedKey: String!, defaultValue: Supplier<LocalDateTime!>!): LocalDateTime!
(source)
Get a local date time from the TOML document, or return a default.
dottedKey
- String!: A dotted key (e.g. "server.address.port"
).
defaultValue
- Supplier<LocalDateTime!>!: A supplier for the default value.
IllegalArgumentException
- If the key cannot be parsed.
TomlInvalidTypeException
- If the value is present but not a LocalDateTime
, or any element of the path preceding the final key is not a table.
Return
LocalDateTime!: The value, or the default.
open fun getLocalDateTime(path: MutableList<String!>!, defaultValue: Supplier<LocalDateTime!>!): LocalDateTime!
(source)
Get a local date time from the TOML document, or return a default.
path
- MutableList<String!>!: The key path.
defaultValue
- Supplier<LocalDateTime!>!: A supplier for the default value.
TomlInvalidTypeException
- If the value is present but not a LocalDateTime
, or any element of the path preceding the final key is not a table.
Return
LocalDateTime!: The value, or the default.