@Override public boolean equals(final Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } final NodeBranchEntry that = (NodeBranchEntry) o; if (nodeVersionId != null ? !nodeVersionId.equals(that.nodeVersionId) : that.nodeVersionId != null) { return false; } if (nodeState != that.nodeState) { return false; } if (nodePath != null ? !nodePath.equals(that.nodePath) : that.nodePath != null) { return false; } if (timestamp != null ? !timestamp.equals(that.timestamp) : that.timestamp != null) { return false; } return !(nodeId != null ? !nodeId.equals(that.nodeId) : that.nodeId != null); }
@Override public int hashCode() { int result = nodeVersionId != null ? nodeVersionId.hashCode() : 0; result = 31 * result + (nodeState != null ? nodeState.hashCode() : 0); result = 31 * result + (nodePath != null ? nodePath.hashCode() : 0); result = 31 * result + (timestamp != null ? timestamp.hashCode() : 0); result = 31 * result + (nodeId != null ? nodeId.hashCode() : 0); return result; }