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

Method newCopyOnWriteArrayList

output/java_guava/1.4.18/Lists.java:282–285  ·  view source on GitHub ↗

Creates an empty CopyOnWriteArrayList instance. Note: if you need an immutable empty List, use Collections#emptyList instead. @return a new, empty CopyOnWriteArrayList @since 12.0

()

Source from the content-addressed store, hash-verified

280 */
281
282 @GwtIncompatible // CopyOnWriteArrayList
283 public static <E> CopyOnWriteArrayList<E> newCopyOnWriteArrayList() {
284 return new CopyOnWriteArrayList<E>();
285 }
286
287 /**
288 * Creates a {@code CopyOnWriteArrayList} instance containing the given elements.

Callers

nothing calls this directly

Calls 2

castMethod · 0.95
newArrayListMethod · 0.95

Tested by

no test coverage detected