MCPcopy Create free account
hub / github.com/Teneted/Tenet / toArrayMapper

Method toArrayMapper

src/main/java/co/aikar/util/JSONUtil.java:74–76  ·  view source on GitHub ↗

These help build a single JSON array using a mapper function @param collection Collection to apply to @param mapper Mapper to apply @param Element Type @return List

(E[] collection, Function<E, Object> mapper)

Source from the content-addressed store, hash-verified

72 * @return List
73 */
74 public static <E> List toArrayMapper(E[] collection, Function<E, Object> mapper) {
75 return toArrayMapper(Lists.newArrayList(collection), mapper);
76 }
77
78 public static <E> List toArrayMapper(Iterable<E> collection, Function<E, Object> mapper) {
79 List array = Lists.newArrayList();

Callers

nothing calls this directly

Calls 2

applyMethod · 0.65
addMethod · 0.65

Tested by

no test coverage detected