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

Method subList

output/java_guava/1.4.18/Ints.java:599–607  ·  view source on GitHub ↗
(int fromIndex, int toIndex)

Source from the content-addressed store, hash-verified

597 }
598
599 @Override
600 public List<Integer> subList(int fromIndex, int toIndex) {
601 int size = size();
602 checkPositionIndexes(fromIndex, toIndex, size);
603 if (fromIndex == toIndex) {
604 return Collections.emptyList();
605 }
606 return new IntArrayAsList(array, start + fromIndex, start + toIndex);
607 }
608
609 @Override
610 public boolean equals(@Nullable Object object) {

Callers

nothing calls this directly

Calls 2

sizeMethod · 0.95
checkPositionIndexesMethod · 0.45

Tested by

no test coverage detected