Bounds

data class Bounds<T>(val min: T, val max: T)

Generic progress bounds.

Constructors

Link copied to clipboard
constructor(min: T, max: T)

Properties

Link copied to clipboard
val max: T
Link copied to clipboard
val min: T

Functions

Link copied to clipboard
fun Bounds<out Number>.fraction(value: Double): Double

Calculate fraction for the given value and bounds.