get Integer
Gets an integer (TOML integer, which is Long) with index from this TomlArray.
NOTE: if the original value comes from a ULong, this function also throws IllegalStateException, because a TOML integer is actually a signed Long, but ULong exceeds the range of it. Please use TomlLiteral.toULongOrNull instead.
Throws
if the corresponding element does not conform to an integer.
Gets an integer (TOML integer, which is Long) with key from this TomlTable.
NOTE: if the original value comes from a ULong, this function also throws IllegalStateException, because a TOML integer is actually a signed Long, but ULong exceeds the range of it. Please use TomlLiteral.toULongOrNull instead.
Throws
if provided non-primitive key.
if the corresponding entry does not conform to an integer.