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