of

fun of(): BrightnessTooHighValidator

Create instance with max brightness threshold value 0.9.

Return

Instance.


fun of(threshold: Double): BrightnessTooHighValidator

Create instance with specified max brightness threshold.

Return

Instance.

Parameters

threshold

Value in interval [0.0, 1.0].

Throws

If value is out of the interval.