/** * Return the hashcode for this id. * @return The hashcode for this id. */ public int hashCode() { int ret = 31 + (int)(id ^ (id >>> 32)); ret = 31 * ret + type.hashCode(); return ret; } }
/** * Return the hashcode for this id. * @return The hashcode for this id. */ public int hashCode() { int ret = 31 + (int)(id ^ (id >>> 32)); ret = 31 * ret + type.hashCode(); return ret; } }
/** * Compute the hashcode. * @return The hashcode. */ protected int calcHashCode() { final int prime = 31; int result = prime + name.hashCode(); result = prime * result + otype.hashCode(); return result; }
/** * Compute the hashcode. * @return The hashcode. */ protected int calcHashCode() { final int prime = 31; int result = prime + name.hashCode(); result = prime * result + otype.hashCode(); return result; }
/** * Compute the hashcode. * @return The hashcode. */ // Hack!!! Do not include otype in hashcode, as attribute can be inherited. protected int calcHashCode() { final int prime = 31; int result = prime + name.hashCode(); // result = prime * result + otype.hashCode(); result = prime * result + type.hashCode(); return result; }
/** * Compute the hashcode. * @return The hashcode. */ // Hack!!! Do not include otype in hashcode, as attribute can be inherited. protected int calcHashCode() { final int prime = 31; int result = prime + name.hashCode(); // result = prime * result + otype.hashCode(); result = prime * result + type.hashCode(); return result; }
/** * Get the hash code of this expression. */ public int hashCode() { int ret = 31 + getType().hashCode(); ret = 31*ret + getValue().hashCode(); return ret; } }
/** * Get the hash code of this expression. */ public int hashCode() { int ret = 31 + getType().hashCode(); ret = 31*ret + getValue().hashCode(); return ret; } }
/** * Compute the hascode. * @return The hashcode. */ public int hashCode() { int ret; if(!attribute.getMultiplicity().equals(OAVAttributeType.NONE)) { ret = super.hashCode(); } else { final int prime = 31; ret = prime * id.hashCode(); ret = prime * ret + type.hashCode(); ret = prime * ret + attribute.hashCode(); } return ret; }
/** * Compute the hascode. * @return The hashcode. */ public int hashCode() { int ret; if(!attribute.getMultiplicity().equals(OAVAttributeType.NONE)) { ret = super.hashCode(); } else { final int prime = 31; ret = prime * id.hashCode(); ret = prime * ret + type.hashCode(); ret = prime * ret + attribute.hashCode(); } return ret; }
/** * Get the hash code. */ public int hashCode() { int ret = 31 + getType().hashCode(); ret = ret*31 + getVariable().hashCode(); return ret; } }
/** * Get the hash code. */ public int hashCode() { int ret = 31 + getType().hashCode(); ret = ret*31 + getVariable().hashCode(); return ret; } }