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

Method subList

output/java_guava/1.4.19/Longs.java:684–692  ·  view source on GitHub ↗
(int fromIndex, int toIndex)

Source from the content-addressed store, hash-verified

682 }
683
684 @Override
685 public List<Long> subList(int fromIndex, int toIndex) {
686 int size = size();
687 checkPositionIndexes(fromIndex, toIndex, size);
688 if (fromIndex == toIndex) {
689 return Collections.emptyList();
690 }
691 return new LongArrayAsList(array, start + fromIndex, start + toIndex);
692 }
693
694 @Override
695 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