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

Method set

output/java_guava/1.4.16/Longs.java:675–682  ·  view source on GitHub ↗
(int index, Long element)

Source from the content-addressed store, hash-verified

673 }
674
675 @Override
676 public Long set(int index, Long element) {
677 checkElementIndex(index, size());
678 long oldValue = array[start + index];
679 // checkNotNull for GWT (do not optimize)
680 array[start + index] = checkNotNull(element);
681 return oldValue;
682 }
683
684 @Override
685 public List<Long> subList(int fromIndex, int toIndex) {

Callers

nothing calls this directly

Calls 3

sizeMethod · 0.95
checkElementIndexMethod · 0.45
checkNotNullMethod · 0.45

Tested by

no test coverage detected