Companion

Properties

Link copied to clipboard
const val MAX: Int
Link copied to clipboard
const val MAX_ZEROS: Int = 9
Link copied to clipboard
const val MIN: Int = 0

Functions

Link copied to clipboard
fun from(value: Double?, maxScore: Int): Score?

value ∈ [0.0, maxScore]

fun from(value: Float?, maxScore: Int): Score?

value ∈ [0.0f, maxScore]

fun from(value: Int?, maxScore: Int): Score?

value ∈ [0, maxScore]

fun from(value: String?, maxScore: Int): Score?

value ∈ ["0.0", maxScore]

Link copied to clipboard
fun from10(value: Double?): Score?

value ∈ [0.0, 10.0]

fun from10(value: Float?): Score?

value ∈ [0.0f, 10.0f]

fun from10(value: Int?): Score?

value ∈ [0, 10]

fun from10(value: String?): Score?

value ∈ ["0.0", "10.0"]

Link copied to clipboard
fun from100(value: Double?): Score?

value ∈ [0.0, 100.0]

fun from100(value: Float?): Score?

value ∈ [0.0f, 100.0f]

fun from100(value: Int?): Score?

value ∈ [0, 100]

fun from100(value: String?): Score?

value ∈ ["0.0", "100.0"]

Link copied to clipboard
fun from5(value: Double?): Score?

value ∈ [0.0, 5.0]

fun from5(value: Float?): Score?

value ∈ [0.0f, 5.0f]

fun from5(value: Int?): Score?

value ∈ [0, 5]

fun from5(value: String?): Score?

value ∈ ["0.0", "5.0"]

Link copied to clipboard
fun fromOld(value: Int?): Score?