coerceIn method
Ensures that this value lies between the minimumValue and maximumValue.
Implementation
Comparable<T> coerceIn(T minimumValue, T maximumValue) {
return coerceAtLeast(minimumValue).coerceAtMost(maximumValue);
}
Ensures that this value lies between the minimumValue and maximumValue.
Comparable<T> coerceIn(T minimumValue, T maximumValue) {
return coerceAtLeast(minimumValue).coerceAtMost(maximumValue);
}