tuweni / org.apache.tuweni.config / Configuration / getInteger

getInteger

abstract fun getInteger(key: String!): Int (source)

Get an integer from this configuration.

Parameters

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

Exceptions

IllegalArgumentException - If the key cannot be parsed.

InvalidConfigurationPropertyTypeException - If the value is not an integer.

NoConfigurationPropertyException - If the key was not set in the configuration.

Return
Int: The value.