Searched refs:getIntOrNull (Results 1 – 2 of 2) sorted by relevance
33 assertThat(settings.getIntOrNull(intKey)).isEqualTo(intVal) in testExpectedValues_returned()41 assertThat(settings.getIntOrNull("unknown")).isNull() in testUndefinedValues_returnNull()57 assertThat(settings.getIntOrNull(stringKey)).isNull() in testMismatchedTypes()61 assertThat(settings.getIntOrNull(longKey)).isNull() in testMismatchedTypes()65 assertThat(settings.getIntOrNull(floatKey)).isNull() in testMismatchedTypes()
45 fun getIntOrNull(name: String): Int? = getStringOrNull(name)?.toIntOrNull() in getStringOrNull() method58 fun getBooleanOrNull(name: String): Boolean? = getIntOrNull(name)?.let { it != 0 } in getStringOrNull()