MCPcopy Create free account
hub / github.com/antlr/codebuff / get

Method get

corpus/java/training/guava/collect/Lists.java:381–393  ·  view source on GitHub ↗
(int index)

Source from the content-addressed store, hash-verified

379 }
380
381 @Override
382 public E get(int index) {
383 switch (index) {
384 case 0:
385 return first;
386 case 1:
387 return second;
388 default:
389 // check explicitly so the IOOBE will have the right message
390 checkElementIndex(index, size());
391 return rest[index - 2];
392 }
393 }
394
395 private static final long serialVersionUID = 0;
396 }

Callers

nothing calls this directly

Calls 2

sizeMethod · 0.95
checkElementIndexMethod · 0.45

Tested by

no test coverage detected