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

Method subList

output/java_guava/1.4.16/Chars.java:545–553  ·  view source on GitHub ↗
(int fromIndex, int toIndex)

Source from the content-addressed store, hash-verified

543 }
544
545 @Override
546 public List<Character> subList(int fromIndex, int toIndex) {
547 int size = size();
548 checkPositionIndexes(fromIndex, toIndex, size);
549 if (fromIndex == toIndex) {
550 return Collections.emptyList();
551 }
552 return new CharArrayAsList(array, start + fromIndex, start + toIndex);
553 }
554
555 @Override
556 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