intValue

fun StringValuesBuilder.intValue(name: String? = null, toInt: StringToInt = defaultStringToInt, toString: IntToString = defaultIntToString): ValueSingleDelegateProvider<Int?>(source)

Creates an optional parameter of type Int with the given name in this StringValuesBuilder instance.

If no name is provided, the property's name will be used.

Parameters

toInt

Method to use when converting from its String form to Int.

toString

Method to use when converting from its Int form to String.