A lot of my functions have a whole load of validation code just below the declarations:
if ( ! (start < end) ) { throw new IllegalStateException( \"S
How about assert start < end. Have a look at the documentation.
assert start < end