Java 8 override restrictions: interface can't implement a method of 'Any'

- update Range and related classes
This commit is contained in:
Dmitry Petrov
2015-10-09 11:59:34 +03:00
parent 7e9e427d4c
commit ff1bf673ba
4 changed files with 20 additions and 2 deletions
@@ -21,6 +21,8 @@ public class ComparableRange<T: Comparable<T>> (
override fun hashCode(): Int {
return if (isEmpty()) -1 else 31 * start.hashCode() + end.hashCode()
}
override fun toString(): String = "$start..$end"
}
/**