adjusted hashcode

This commit is contained in:
Connor Tumbleson 2012-09-13 14:06:14 -05:00
parent 5c7a82ab8d
commit 1e0a80f9a8
4 changed files with 10 additions and 10 deletions

View File

@ -356,8 +356,8 @@ public class ResConfigFlags {
@Override @Override
public int hashCode() { public int hashCode() {
int hash = 3; int hash = 17;
hash = 97 * hash + this.mQualifiers.hashCode(); hash = 31 * hash + this.mQualifiers.hashCode();
return hash; return hash;
} }

View File

@ -48,8 +48,8 @@ public class ResID {
@Override @Override
public int hashCode() { public int hashCode() {
int hash = 7; int hash = 17;
hash = 59 * hash + this.id; hash = 31 * hash + this.id;
return hash; return hash;
} }

View File

@ -205,9 +205,9 @@ public class ResPackage {
@Override @Override
public int hashCode() { public int hashCode() {
int hash = 7; int hash = 17;
hash = 37 * hash + (this.mResTable != null ? this.mResTable.hashCode() : 0); hash = 31 * hash + (this.mResTable != null ? this.mResTable.hashCode() : 0);
hash = 37 * hash + this.mId; hash = 31 * hash + this.mId;
return hash; return hash;
} }

View File

@ -82,9 +82,9 @@ public class ResValuesFile {
@Override @Override
public int hashCode() { public int hashCode() {
int hash = 5; int hash = 17;
hash = 37 * hash + (this.mType != null ? this.mType.hashCode() : 0); hash = 31 * hash + (this.mType != null ? this.mType.hashCode() : 0);
hash = 37 * hash + (this.mConfig != null ? this.mConfig.hashCode() : 0); hash = 31 * hash + (this.mConfig != null ? this.mConfig.hashCode() : 0);
return hash; return hash;
} }
} }