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

Method map

src/org/antlr/codebuff/misc/BuffUtils.java:54–60  ·  view source on GitHub ↗
(Collection<T> data, Function<T, R> getter)

Source from the content-addressed store, hash-verified

52 }
53
54 public static <T, R> List<R> map(Collection<T> data, Function<T, R> getter) {
55 List<R> output = new ArrayList<>();
56 if ( data!=null ) for (T x : data) {
57 output.add(getter.apply(x));
58 }
59 return output;
60 }
61
62 public static <T, R> List<R> map(T[] data, Function<T, R> getter) {
63 List<R> output = new ArrayList<>();

Callers 8

computeConsistencyMethod · 0.95
testAllLanguagesMethod · 0.45
mainMethod · 0.45
mainMethod · 0.45
mainMethod · 0.45
mainMethod · 0.45

Calls 2

addMethod · 0.65
applyMethod · 0.65

Tested by

no test coverage detected