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

Method range_check

chapter18/src/main/java/com/seaofnodes/simple/Ary.java:176–179  ·  view source on GitHub ↗
( int i )

Source from the content-addressed store, hash-verified

174 }
175
176 private void range_check( int i ) {
177 if( i < 0 || i>=_len )
178 throw new ArrayIndexOutOfBoundsException(""+i+" >= "+_len);
179 }
180
181 // Note that the hashCode() and equals() are not invariant to changes in the
182 // underlying array. If the hashCode() is used (e.g., inserting into a

Callers 6

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

Calls

no outgoing calls

Tested by

no test coverage detected