MCPcopy Create free account
hub / github.com/jOOQ/jOOQ / newListWithCapacity

Method newListWithCapacity

jOOQ/src/main/java/org/jooq/impl/Tools.java:2409–2411  ·  view source on GitHub ↗
(Iterable<?> it)

Source from the content-addressed store, hash-verified

2407 }
2408
2409 private static final <T> List<T> newListWithCapacity(Iterable<?> it) {
2410 return it instanceof Collection<?> c ? new ArrayList<>(c.size()) : new ArrayList<>();
2411 }
2412
2413 static final <T, R, X extends Throwable> R apply(@Nullable T t, ThrowingFunction<? super @NotNull T, ? extends R, ? extends X> f) throws X {
2414 return t == null ? null : f.apply(t);

Callers 2

mapMethod · 0.95
flatMapMethod · 0.95

Calls 1

sizeMethod · 0.65

Tested by

no test coverage detected