@Override public int hashCode() { return name.hashCode(); }
/** * Computes a hash code representing this type. * * @return the hash code */ @Override public int hashCode() { int result = name.hashCode(); result = 31 * result + Arrays.hashCode(annotations); return result; } }
/** * Returns a hash code representing this object. * * @return the hash code of this object * @see Object#hashCode() */ @Override public int hashCode() { int result = name.hashCode(); result = 31 * result + Arrays.hashCode(values); return result; } }
@Override public int hashCode() { int result = super.hashCode(); result = 31 * result + value.hashCode(); result = 31 * result + typeName.hashCode(); return result; } }
/** * Returns a hash code which is based on the semantic representation of this <code>DotName</code>. * Whether or not a <code>DotName</code> is componentized has no impact on the calculated hash code. * * @return a hash code representing this object * @see Object#hashCode() */ public int hashCode() { int hash = this.hash; if (hash != 0) return hash; if (prefix != null) { hash = prefix.hashCode() * 31 + (innerClass ? '$' : '.'); // Luckily String.hashCode documents the algorithm it follows for (int i = 0; i < local.length(); i++) { hash = 31 * hash + local.charAt(i); } } else { hash = local.hashCode(); } return this.hash = hash; }