Returns the index of value.
value
The returned index could be out of range.
@override int getIndexOf(int value) => (value - firstValue) ~/ interval;