MCPcopy Index your code
hub / github.com/antlr/codebuff / asList

Method asList

output/java_guava/1.4.17/Ints.java:520–525  ·  view source on GitHub ↗

Returns a fixed-size list backed by the specified array, similar to Arrays#asList(Object[]). The list supports List#set(int, Object), but any attempt to set a value to null will result in a NullPointerException. The returned list maintains the values, but not the

(int... backingArray)

Source from the content-addressed store, hash-verified

518
519
520 public static List<Integer> asList(int... backingArray) {
521 if (backingArray.length == 0) {
522 return Collections.emptyList();
523 }
524 return new IntArrayAsList(backingArray);
525 }
526
527 @GwtCompatible
528 private static class IntArrayAsList extends AbstractList<Integer> implements RandomAccess, Serializable {

Callers 15

addMethod · 0.45
addMethod · 0.45
addMethod · 0.45
addMethod · 0.45

Calls

no outgoing calls

Tested by 1

writePythonMethod · 0.36