org.zalando.logbook.netty.Conditionals Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of logbook-netty Show documentation
Show all versions of logbook-netty Show documentation
HTTP Client interceptor for request and response logging
The newest version!
package org.zalando.logbook.netty;
import org.zalando.fauxpas.ThrowingConsumer;
final class Conditionals {
private Conditionals() {
// nothing to do
}
static void runIf(
final Object object,
final Class type,
final ThrowingConsumer consumer) {
if (type.isInstance(object)) {
consumer.accept(type.cast(object));
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy