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

Method asList

output/java_guava/1.4.19/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

ofMethod · 0.45
copyOfMethod · 0.45
getKeyMethod · 0.45
getCellMethod · 0.45
getEntryMethod · 0.45
readResolveMethod · 0.45
nextMethod · 0.45
putAllMethod · 0.45
getEntryMethod · 0.45
createAsListMethod · 0.45
iteratorMethod · 0.45
leastOfMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected