Class GsonUtils
java.lang.Object
org.spongepowered.plugin.metadata.builtin.adapter.util.GsonUtils
This is not public API as this package is not exported by the module.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondeserializeMap(@Nullable JsonElement element, Function<JsonElement, Object> valFunc, Supplier<Map<String, Object>> collector) static Optional<JsonElement> optional(JsonObject obj, String name) static JsonElementrequire(JsonObject obj, String name) static JsonObjectserializeMap(Map<String, Object> map, Function<Object, JsonElement> valFunc) static Stream<JsonElement> stream(JsonObject obj, String name) static JsonArraytoArray(Stream<JsonElement> stream)
-
Constructor Details
-
GsonUtils
public GsonUtils()
-
-
Method Details
-
require
-
optional
-
stream
-
toArray
-
deserializeMap
-
serializeMap
-