public class TreeLink { private Object parentNode; private Object childNode; public TreeLink(Object parentNode, Object childNode) { this.parentNode = parentNode; this.childNode = childNode; } public Object getParentNode() { return parentNode; } public Object getChildNode() { return childNode; } }