coerceIn method

Comparable<T> coerceIn(
  1. T minimumValue,
  2. T maximumValue
)

Ensures that this value lies between the minimumValue and maximumValue.

Implementation

Comparable<T> coerceIn(T minimumValue, T maximumValue) {
  return coerceAtLeast(minimumValue).coerceAtMost(maximumValue);
}