All Downloads are FREE. Search and download functionalities are using the official Maven repository.

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();
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy