MCPcopy Create free account
hub / github.com/EdwardRaff/JSAT / boundsCheck

Method boundsCheck

JSAT/src/jsat/utils/DoubleList.java:105–109  ·  view source on GitHub ↗
(int index)

Source from the content-addressed store, hash-verified

103 }
104
105 private void boundsCheck(int index) throws IndexOutOfBoundsException
106 {
107 if(index >= size())
108 throw new IndexOutOfBoundsException("List is of size " + size() + ", index requested " + index);
109 }
110
111 /**
112 * Enlarge the storage array if needed

Callers 4

getDMethod · 0.95
setMethod · 0.95
addMethod · 0.95
removeDMethod · 0.95

Calls 1

sizeMethod · 0.95

Tested by

no test coverage detected