public class KeepCollectors
extends java.lang.Object
Utility class that provides Vert.x and Keep specific Collectors for use with the Java streaming api
Modifier and Type | Method and Description |
---|---|
static java.util.stream.Collector<java.lang.Boolean,java.lang.Boolean,java.lang.Boolean> |
allTrueCollector()
Collector returning TRUE when all Stream members are true Also returns true on an empty stream
|
static java.util.stream.Collector<io.vertx.core.buffer.Buffer,io.vertx.core.buffer.Buffer,io.vertx.core.buffer.Buffer> |
bufferCollector()
Combines incoming buffers into one outgoing buffer
|
static java.util.stream.Collector<io.vertx.core.buffer.Buffer,io.vertx.core.buffer.Buffer,io.vertx.core.buffer.Buffer> |
bufferCollectorNullable()
Combines incoming buffers into one outgoing buffer
|
static java.util.stream.Collector<java.lang.Object,io.vertx.core.json.JsonArray,io.vertx.core.json.JsonArray> |
jsonArrayCollector()
Collector that captures incoming arbitrary Objects in a Json Array
|
static java.util.stream.Collector<io.vertx.core.json.JsonObject,io.vertx.core.json.JsonObject,io.vertx.core.json.JsonObject> |
jsonCollector()
Collector that captures incoming JsonObjects into a new JsonObject
|
static java.util.stream.Collector<io.vertx.core.json.JsonObject,io.vertx.core.json.JsonObject,io.vertx.core.json.JsonObject> |
jsonCollector(io.vertx.core.json.JsonObject result)
Collector that captures incoming JsonObjects into a provided JsonObject
|
static java.util.stream.Collector<java.util.Map.Entry<java.lang.String,? extends java.lang.Object>,io.vertx.core.json.JsonObject,io.vertx.core.json.JsonObject> |
jsonMapCollector(io.vertx.core.json.JsonObject result)
Collector that captures incoming Map.Entries into a provided JsonObject
|
static java.util.stream.Collector<io.vertx.core.json.JsonObject,io.vertx.core.json.JsonArray,io.vertx.core.json.JsonArray> |
jsonObject2ArrayCollector()
Collector that captures incoming JsonObjects in a Json Array
|
static java.util.stream.Collector<io.vertx.core.json.JsonObject,io.vertx.core.json.JsonArray,io.vertx.core.json.JsonArray> |
jsonObject2ArrayCollectorNullable()
Collector that captures incoming JsonObjects in a Json Array
|
static java.util.stream.Collector<java.lang.String,io.vertx.core.buffer.Buffer,io.vertx.core.buffer.Buffer> |
string2BufferCollector()
Combines incoming buffers into one outgoing buffer
|
static java.util.stream.Collector<java.lang.String,io.vertx.core.buffer.Buffer,io.vertx.core.buffer.Buffer> |
string2BufferCollectorNullable()
Combines incoming buffers into one outgoing buffer
|
public static java.util.stream.Collector<java.lang.Boolean,java.lang.Boolean,java.lang.Boolean> allTrueCollector()
Collector returning TRUE when all Stream members are true Also returns true on an empty stream
public static java.util.stream.Collector<io.vertx.core.buffer.Buffer,io.vertx.core.buffer.Buffer,io.vertx.core.buffer.Buffer> bufferCollector()
Combines incoming buffers into one outgoing buffer
public static java.util.stream.Collector<io.vertx.core.buffer.Buffer,io.vertx.core.buffer.Buffer,io.vertx.core.buffer.Buffer> bufferCollectorNullable()
Combines incoming buffers into one outgoing buffer
public static java.util.stream.Collector<java.lang.Object,io.vertx.core.json.JsonArray,io.vertx.core.json.JsonArray> jsonArrayCollector()
Collector that captures incoming arbitrary Objects in a Json Array
public static java.util.stream.Collector<io.vertx.core.json.JsonObject,io.vertx.core.json.JsonObject,io.vertx.core.json.JsonObject> jsonCollector()
Collector that captures incoming JsonObjects into a new JsonObject
public static java.util.stream.Collector<io.vertx.core.json.JsonObject,io.vertx.core.json.JsonObject,io.vertx.core.json.JsonObject> jsonCollector(io.vertx.core.json.JsonObject result)
Collector that captures incoming JsonObjects into a provided JsonObject
result
- public static java.util.stream.Collector<java.util.Map.Entry<java.lang.String,? extends java.lang.Object>,io.vertx.core.json.JsonObject,io.vertx.core.json.JsonObject> jsonMapCollector(io.vertx.core.json.JsonObject result)
Collector that captures incoming Map.Entries into a provided JsonObject
result
- public static java.util.stream.Collector<io.vertx.core.json.JsonObject,io.vertx.core.json.JsonArray,io.vertx.core.json.JsonArray> jsonObject2ArrayCollector()
Collector that captures incoming JsonObjects in a Json Array
public static java.util.stream.Collector<io.vertx.core.json.JsonObject,io.vertx.core.json.JsonArray,io.vertx.core.json.JsonArray> jsonObject2ArrayCollectorNullable()
Collector that captures incoming JsonObjects in a Json Array
public static java.util.stream.Collector<java.lang.String,io.vertx.core.buffer.Buffer,io.vertx.core.buffer.Buffer> string2BufferCollector()
Combines incoming buffers into one outgoing buffer
public static java.util.stream.Collector<java.lang.String,io.vertx.core.buffer.Buffer,io.vertx.core.buffer.Buffer> string2BufferCollectorNullable()
Combines incoming buffers into one outgoing buffer