between method
Returns true, if this Comparable is between min
and max
(inclusive).
Implementation
bool between(T min, T max) => compareTo(min) >= 0 && compareTo(max) <= 0;
Returns true, if this Comparable is between min
and max
(inclusive).
bool between(T min, T max) => compareTo(min) >= 0 && compareTo(max) <= 0;