boolean (final Object o) { if (this == o) return true; if (!(o instanceof NodeWrapper)) return false; final NodeWrapper that = (NodeWrapper)o; if (myNode != null ? !myNode.equals(that.myNode) : that.myNode != null) return false; return true; }