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

Method asList

corpus/java/training/guava/collect/Lists.java:312–314  ·  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

310 * @return an unmodifiable list containing the specified elements
311 */
312 public static <E> List<E> asList(@Nullable E first, E[] rest) {
313 return new OnePlusArrayList<E>(first, rest);
314 }
315
316 /** @see Lists#asList(Object, Object[]) */
317 private static class OnePlusArrayList<E> extends AbstractList<E>

Callers 15

explicitMethod · 0.95
ofMethod · 0.95
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

Calls

no outgoing calls

Tested by

no test coverage detected