MCPcopy Create free account
hub / github.com/SeaOfNodes/Simple / range_check

Method range_check

chapter21/src/main/java/com/seaofnodes/simple/Ary.java:203–206  ·  view source on GitHub ↗
( int i )

Source from the content-addressed store, hash-verified

201 }
202
203 private void range_check( int i ) {
204 if( i < 0 || i>=_len )
205 throw new ArrayIndexOutOfBoundsException(""+i+" >= "+_len);
206 }
207
208 // Note that the hashCode() and equals() are not invariant to changes in the
209 // underlying array. If the hashCode() is used (e.g., inserting into a

Callers 5

atMethod · 0.95
delMethod · 0.95
removeMethod · 0.95
setMethod · 0.95
swapMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected