MCPcopy Create free account
hub / github.com/OpenTSDB/opentsdb / checkIndex

Method checkIndex

src/core/BatchedDataPoints.java:387–396  ·  view source on GitHub ↗

@throws IndexOutOfBoundsException if i is out of bounds.

(final int i)

Source from the content-addressed store, hash-verified

385 * @throws IndexOutOfBoundsException if {@code i} is out of bounds.
386 */
387 private void checkIndex(final int i) {
388 if (i > size) {
389 throw new IndexOutOfBoundsException("index " + i + " > " + size
390 + " for this=" + this);
391 }
392 if (i < 0) {
393 throw new IndexOutOfBoundsException("negative index " + i
394 + " for this=" + this);
395 }
396 }
397
398 /**
399 * Computes the proper offset to reach qualifier

Callers 4

timestampMethod · 0.95
isIntegerMethod · 0.95
longValueMethod · 0.95
doubleValueMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected