public boolean touches ( final IndexRange other ) { Objects . requireNonNull ( other , "other" ) ; return other . end == start || end == other . start ; }
Determines whether this range immediated follows or precedes the given other one .