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

Method set

output/java_guava/1.4.18/Bytes.java:325–333  ·  view source on GitHub ↗
(int index, Byte element)

Source from the content-addressed store, hash-verified

323 }
324
325 @Override
326 public Byte set(int index, Byte element) {
327 checkElementIndex(index, size());
328
329 byte oldValue = array[start + index];
330 // checkNotNull for GWT (do not optimize)
331 array[start + index] = checkNotNull(element);
332 return oldValue;
333 }
334
335 @Override
336 public List<Byte> 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