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

Method asList

output/java_guava/1.4.17/Lists.java:324–326  ·  view source on GitHub ↗

Returns an unmodifiable list containing the specified first element and backed by the specified array of additional elements. Changes to the rest array will be reflected in the returned list. Unlike Arrays#asList, the returned list is unmodifiable. This is useful when a varargs m

(@Nullable E first, E[] rest)

Source from the content-addressed store, hash-verified

322
323
324 public static <E> List<E> asList(@Nullable E first, E[] rest) {
325 return new OnePlusArrayList<E>(first, rest);
326 }
327
328 /** @see Lists#asList(Object, Object[]) */
329

Callers 3

explicitMethod · 0.95
ofMethod · 0.95
cartesianProductMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected