tuweni / org.apache.tuweni.config / Schema / getDefaultInteger

getDefaultInteger

@Nullable fun getDefaultInteger(key: String!): Int? (source)

Get a default value from this configuration as a integer.

Parameters

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

Exceptions

InvalidConfigurationPropertyTypeException - If the default value is not an integer.

Return
Int?: The value, or null if no default was available.