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

Method subList

output/java_guava/1.4.19/Bytes.java:335–343  ·  view source on GitHub ↗
(int fromIndex, int toIndex)

Source from the content-addressed store, hash-verified

333 }
334
335 @Override
336 public List<Byte> subList(int fromIndex, int toIndex) {
337 int size = size();
338 checkPositionIndexes(fromIndex, toIndex, size);
339 if (fromIndex == toIndex) {
340 return Collections.emptyList();
341 }
342 return new ByteArrayAsList(array, start + fromIndex, start + toIndex);
343 }
344
345 @Override
346 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