org.bidib.wizard.common.node.InterfaceNode Maven / Gradle / Ivy
package org.bidib.wizard.common.node;
import java.lang.ref.WeakReference;
import org.bidib.wizard.api.model.InterfaceNodeInterface;
import org.bidib.wizard.api.model.NodeInterface;
public class InterfaceNode implements InterfaceNodeInterface {
private final WeakReference parent;
public InterfaceNode(final NodeInterface parent) {
this.parent = new WeakReference<>(parent);
}
@Override
public NodeInterface getNode() {
return parent.get();
}
}