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