Package javax.json.stream
Class JsonCollectors
- java.lang.Object
-
- javax.json.stream.JsonCollectors
-
public final class JsonCollectors extends java.lang.Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.util.stream.Collector<JsonValue,java.util.Map<java.lang.String,JsonArrayBuilder>,JsonObject>
groupingBy(java.util.function.Function<JsonValue,java.lang.String> classifier)
static <T extends JsonArrayBuilder>
java.util.stream.Collector<JsonValue,java.util.Map<java.lang.String,T>,JsonObject>groupingBy(java.util.function.Function<JsonValue,java.lang.String> classifier, java.util.stream.Collector<JsonValue,T,JsonArray> downstream)
static java.util.stream.Collector<JsonValue,JsonArrayBuilder,JsonArray>
toJsonArray()
static java.util.stream.Collector<java.util.Map.Entry<java.lang.String,JsonValue>,JsonObjectBuilder,JsonObject>
toJsonObject()
static java.util.stream.Collector<JsonValue,JsonObjectBuilder,JsonObject>
toJsonObject(java.util.function.Function<JsonValue,java.lang.String> keyMapper, java.util.function.Function<JsonValue,JsonValue> valueMapper)
-
-
-
Method Detail
-
toJsonArray
public static java.util.stream.Collector<JsonValue,JsonArrayBuilder,JsonArray> toJsonArray()
-
toJsonObject
public static java.util.stream.Collector<java.util.Map.Entry<java.lang.String,JsonValue>,JsonObjectBuilder,JsonObject> toJsonObject()
-
toJsonObject
public static java.util.stream.Collector<JsonValue,JsonObjectBuilder,JsonObject> toJsonObject(java.util.function.Function<JsonValue,java.lang.String> keyMapper, java.util.function.Function<JsonValue,JsonValue> valueMapper)
-
groupingBy
public static <T extends JsonArrayBuilder> java.util.stream.Collector<JsonValue,java.util.Map<java.lang.String,T>,JsonObject> groupingBy(java.util.function.Function<JsonValue,java.lang.String> classifier, java.util.stream.Collector<JsonValue,T,JsonArray> downstream)
-
groupingBy
public static java.util.stream.Collector<JsonValue,java.util.Map<java.lang.String,JsonArrayBuilder>,JsonObject> groupingBy(java.util.function.Function<JsonValue,java.lang.String> classifier)
-
-