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

Method get

output/java_guava/1.4.19/Lists.java:397–409  ·  view source on GitHub ↗
(int index)

Source from the content-addressed store, hash-verified

395 }
396
397 @Override
398 public E get(int index) {
399 switch (index) {
400 case 0:
401 return first;
402 case 1:
403 return second;
404 default:
405 // check explicitly so the IOOBE will have the right message
406 checkElementIndex(index, size());
407 return rest[index - 2];
408 }
409 }
410
411 private static final long serialVersionUID = 0;
412 }

Callers

nothing calls this directly

Calls 2

sizeMethod · 0.95
checkElementIndexMethod · 0.45

Tested by

no test coverage detected