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

Method toArrayList

corpus/java/training/guava/cache/LocalCache.java:4588–4593  ·  view source on GitHub ↗
(Collection<E> c)

Source from the content-addressed store, hash-verified

4586 }
4587
4588 private static <E> ArrayList<E> toArrayList(Collection<E> c) {
4589 // Avoid calling ArrayList(Collection), which may call back into toArray.
4590 ArrayList<E> result = new ArrayList<E>(c.size());
4591 Iterators.addAll(result, c.iterator());
4592 return result;
4593 }
4594
4595 @WeakOuter
4596 final class KeySet extends AbstractCacheSet<K> {

Callers 2

toArrayMethod · 0.45
toArrayMethod · 0.45

Calls 3

addAllMethod · 0.95
sizeMethod · 0.65
iteratorMethod · 0.65

Tested by

no test coverage detected