getString

Gets the contained value as a String.

Return

The value as a String, or null if the value is not a String.


open fun getString(@NonNull defaultValue: String): String

Gets the contained values as a String.

Return

The value as a String, or the defaultValue if the value is not a String.

Parameters

defaultValue

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