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

Method get

output/java_guava/1.4.16/Lists.java:724–730  ·  view source on GitHub ↗
(int index)

Source from the content-addressed store, hash-verified

722 }
723
724 @Override
725 public List<T> get(int index) {
726 checkElementIndex(index, size());
727 int start = index * size;
728 int end = Math.min(start + size, list.size());
729 return list.subList(start, end);
730 }
731
732 @Override
733 public int size() {

Callers

nothing calls this directly

Calls 5

sizeMethod · 0.95
sizeMethod · 0.65
checkElementIndexMethod · 0.45
minMethod · 0.45
subListMethod · 0.45

Tested by

no test coverage detected