Search in sources :

Example 1 with Ut

use of io.vertx.up.tool.Ut in project vertx-zero by silentbalanceyh.

the class Self method remove.

static JsonObject remove(final JsonObject entity, final boolean immutable, final String... keys) {
    final JsonObject result = immutable ? entity.copy() : entity;
    Observable.fromArray(keys).filter(Ut::notNil).map(result::remove).subscribe();
    return result;
}
Also used : JsonObject(io.vertx.core.json.JsonObject) Ut(io.vertx.up.tool.Ut)

Aggregations

JsonObject (io.vertx.core.json.JsonObject)1 Ut (io.vertx.up.tool.Ut)1