use of jakarta.json.bind.adapter.JsonbAdapter in project alias by JohT.
the class ImmutableJsonbConfig method withoutAdapterOfType.
public <T extends JsonbAdapter<?, ?>> JsonbConfig withoutAdapterOfType(Class<T> adapterType) {
JsonbConfig newConfig = getJsonbConfig();
Optional<Object> property = jsonbConfig.getProperty(JsonbConfig.ADAPTERS);
newConfig.setProperty(JsonbConfig.ADAPTERS, withoutType(adapterType, contentsOf(property)).toArray(JsonbAdapter[]::new));
return newConfig;
}
Aggregations