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

Method newLinkedList

corpus/java/training/guava/collect/Lists.java:233–236  ·  view source on GitHub ↗

Creates a mutable , empty LinkedList instance (for Java 6 and earlier). Note: if you won't be adding any elements to the list, use ImmutableList#of() instead. Performance note: ArrayList and java.util.ArrayDeque consistently outperform {@co

()

Source from the content-addressed store, hash-verified

231 * of the new <a href="http://goo.gl/iz2Wi">"diamond" syntax</a>.
232 */
233 @GwtCompatible(serializable = true)
234 public static <E> LinkedList<E> newLinkedList() {
235 return new LinkedList<E>();
236 }
237
238 /**
239 * Creates a <i>mutable</i> {@code LinkedList} instance containing the given

Callers

nothing calls this directly

Calls 1

addAllMethod · 0.95

Tested by

no test coverage detected