tuweni / org.apache.tuweni.config / Schema / getDefaultLong

getDefaultLong

@Nullable fun getDefaultLong(key: String!): Long? (source)

Get a default value from this configuration as a long.

Parameters

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

Exceptions

InvalidConfigurationPropertyTypeException - If the default value is not a long.

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