getInt

open fun getInt(defaultValue: Int): Int

Gets the contained values as an int.

Return

The value as an int, or the defaultValue if the value is not a number.

Parameters

defaultValue

The default value if the contained value is not a number.