io.quarkus.rest.client.reactive.jackson.runtime.serialisers.ResolverMapKey Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of quarkus-rest-client-jackson Show documentation
Show all versions of quarkus-rest-client-jackson Show documentation
Jackson serialization support for REST Client
package io.quarkus.rest.client.reactive.jackson.runtime.serialisers;
import java.util.Objects;
import jakarta.ws.rs.core.Configuration;
/**
* Each REST Client can potentially have different providers, so we need to make sure that
* caching for one client does not affect caching of another
*/
public final class ResolverMapKey {
private final Configuration configuration;
private final Class> restClientClass;
public ResolverMapKey(Configuration configuration, Class> restClientClass) {
this.configuration = configuration;
this.restClientClass = restClientClass;
}
public Configuration getConfiguration() {
return configuration;
}
public Class> getRestClientClass() {
return restClientClass;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (!(o instanceof ResolverMapKey)) {
return false;
}
ResolverMapKey that = (ResolverMapKey) o;
return Objects.equals(configuration, that.configuration)
&& Objects.equals(restClientClass, that.restClientClass);
}
@Override
public int hashCode() {
return Objects.hash(configuration, restClientClass);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy