io.vertx.httpproxy.cache.CacheOptionsConverter Maven / Gradle / Ivy
The newest version!
package io.vertx.httpproxy.cache;
import io.vertx.core.json.JsonObject;
import io.vertx.core.json.JsonArray;
import java.time.Instant;
import java.time.format.DateTimeFormatter;
/**
* Converter and mapper for {@link io.vertx.httpproxy.cache.CacheOptions}.
* NOTE: This class has been automatically generated from the {@link io.vertx.httpproxy.cache.CacheOptions} original class using Vert.x codegen.
*/
public class CacheOptionsConverter {
static void fromJson(Iterable> json, CacheOptions obj) {
for (java.util.Map.Entry member : json) {
switch (member.getKey()) {
case "maxSize":
if (member.getValue() instanceof Number) {
obj.setMaxSize(((Number)member.getValue()).intValue());
}
break;
}
}
}
static void toJson(CacheOptions obj, JsonObject json) {
toJson(obj, json.getMap());
}
static void toJson(CacheOptions obj, java.util.Map json) {
json.put("maxSize", obj.getMaxSize());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy