+ @Override
+ public int hashCode() {
+
+ final int prime = 31;
+
+ int result = super.hashCode();
+
+ result = data != null ? prime * result + data.hashCode() : parent;
+ result = parentData != null ? prime * result + parentData.hashCode() : result;
+ result = prime * result + Integer.hashCode(parent);
+ result = prime * result + Boolean.hashCode(editable);
+
+ return result;
+
+ }
+ @Override
+ public boolean equals(Object obj) {
+ if (this == obj)
+ return true;
+ if (obj == null)
+ return false;
+ if (getClass() != obj.getClass())
+ return false;
+ TreeTableCell other = (TreeTableCell) obj;
+ if (data == null) {
+ if (other.data != null)
+ return false;
+ } else if (!data.equals(other.data))
+ return false;
+ if (parentData == null) {
+ if (other.parentData != null)
+ return false;
+ } else if (!parentData.equals(other.parentData))
+ return false;
+ if (parent != other.parent)
+ return false;
+ if (editable != other.editable)
+ return false;
+ return super.equals(obj);
+ }
+