Implementation from Effective Java 2nd Edition Page 48
@override int get hashCode { int result = 17; result = 31 * result + minValue.toInt(); result = 31 * result + maxValue.toInt(); return result; }