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

Method toObjectMapper

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

These help build a single JSON Object from a collection, using a mapper function @param collection Collection to apply to @param mapper Mapper to apply @param Element Type @return Map

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

Source from the content-addressed store, hash-verified

95 * @return Map
96 */
97 public static <E> Map toObjectMapper(E[] collection, Function<E, JSONPair> mapper) {
98 return toObjectMapper(Lists.newArrayList(collection), mapper);
99 }
100
101 public static <E> Map toObjectMapper(Iterable<E> collection, Function<E, JSONPair> mapper) {
102 Map object = Maps.newLinkedHashMap();

Callers

nothing calls this directly

Calls 2

applyMethod · 0.65
putMethod · 0.65

Tested by

no test coverage detected