/** * Override Object.equals() to compare objects * @param other Other object * @return True if equal */ public boolean equals(Object other) { if(this == other) { return true; } if(! (other instanceof JoinType)) { return false; } return ((JoinType)other).getTypeCode() == this.type; }
/** * Override Object.equals() to compare objects * @param other Other object * @return True if equal */ public boolean equals(Object other) { if(this == other) { return true; } if(! (other instanceof JoinType)) { return false; } return ((JoinType)other).getTypeCode() == this.type; }
/** * Override Object.equals() to compare objects * @param other Other object * @return True if equal */ public boolean equals(Object other) { if(this == other) { return true; } if(! (other instanceof JoinType)) { return false; } return ((JoinType)other).getTypeCode() == this.type; }
/** * Get hash code for object * @return Hash code */ public int hashCode() { int hash = HashCodeUtil.hashCode(0, getLeftClause()); hash = HashCodeUtil.hashCode(hash, getJoinType().getTypeCode()); hash = HashCodeUtil.hashCode(hash, getRightClause()); return hash; }
/** * Get hash code for object * @return Hash code */ public int hashCode() { int hash = HashCodeUtil.hashCode(0, getLeftClause()); hash = HashCodeUtil.hashCode(hash, getJoinType().getTypeCode()); hash = HashCodeUtil.hashCode(hash, getRightClause()); return hash; }
/** * Get hash code for object * @return Hash code */ public int hashCode() { int hash = HashCodeUtil.hashCode(0, getLeftClause()); hash = HashCodeUtil.hashCode(hash, getJoinType().getTypeCode()); hash = HashCodeUtil.hashCode(hash, getRightClause()); return hash; }