public void linkup(LeftHeapNode v) { if ((this.getParent() != null) && (v != null)) { final LeftHeapNode tmp = this.getParent(); v.setRight(this); this.setParent(v); v.setParent(tmp); v.getParent().setRight(v); } }