Package | Description |
---|---|
co.aikar.util |
Modifier and Type | Method and Description |
---|---|
static JSONUtil.JSONPair |
JSONUtil.pair(long key,
Object obj) |
static JSONUtil.JSONPair |
JSONUtil.pair(String key,
Object obj)
Creates a key/value "JSONPair" object
|
Modifier and Type | Method and Description |
---|---|
static Map<String,Object> |
JSONUtil.appendObjectData(Map parent,
JSONUtil.JSONPair... data)
This appends multiple key/value Obj pairs into a JSON Object
|
static Map<String,Object> |
JSONUtil.createObject(JSONUtil.JSONPair... data)
Creates a new JSON object from multiple JSONPair key/value pairs
|
Modifier and Type | Method and Description |
---|---|
static <E> Map |
JSONUtil.toObjectMapper(E[] collection,
com.google.common.base.Function<E,JSONUtil.JSONPair> mapper)
These help build a single JSON Object from a collection, using a mapper function
|
static <E> Map |
JSONUtil.toObjectMapper(Iterable<E> collection,
com.google.common.base.Function<E,JSONUtil.JSONPair> mapper) |
Copyright © 2022. All rights reserved.