public final class Utils extends Object
| Modifier and Type | Method and Description |
|---|---|
static io.vertx.core.json.JsonObject |
camelCaseKeys(io.vertx.core.json.JsonObject json) |
static <T> Optional<T> |
getFirstElement(List<T> list) |
static <T extends Entity> |
merge(T from,
T to)
Merges the field values of
to onto from, replacing from's value
with to's non-null value. |
static String |
toCamelCase(String word) |
static String |
toCamelCase(String word,
String separator) |
public static <T extends Entity> T merge(T from, T to)
to onto from, replacing from's value
with to's non-null value. If to's value for a certain field
is null, resulting return object will take from's value for that field.
public static io.vertx.core.json.JsonObject camelCaseKeys(io.vertx.core.json.JsonObject json)
Copyright © 2021. All rights reserved.