io.descoped.dc.api.node.Base Maven / Gradle / Ivy
package io.descoped.dc.api.node;
import java.util.concurrent.atomic.AtomicBoolean;
import java.util.function.Consumer;
// used by all simple nodes
public interface Base {
boolean instanceOf(Class extends Base> nodeClass);
R cast(Class nodeClass);
void given(Class isInstanceOfNodeClass, Consumer then);
void given(Class isInstanceOfNodeClass, AtomicBoolean andIfNotHandled, Consumer then);
}