org.wildfly.swarm.config.LoggingConsumer Maven / Gradle / Ivy
The newest version!
package org.wildfly.swarm.config;
import org.wildfly.swarm.config.Logging;
import java.lang.FunctionalInterface;
@FunctionalInterface
public interface LoggingConsumer> {
/**
* Configure a pre-constructed instance of Logging resource
*
* @parameter Instance of Logging to configure
* @return nothing
*/
void accept(T value);
default LoggingConsumer andThen(LoggingConsumer after) {
return (c) -> {
this.accept(c);
after.accept(c);
};
}
}