1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-11-27 11:42:16 -05:00

Add missing hashCode() method to SearchCondition

This commit is contained in:
cketti 2015-01-03 02:46:36 +01:00
parent e45d780c6f
commit 928c7f33a3

View File

@ -138,6 +138,16 @@ public interface SearchSpecification extends Parcelable {
return false;
}
@Override
public int hashCode() {
int result = 1;
result = 31 * result + attribute.hashCode();
result = 31 * result + field.hashCode();
result = 31 * result + value.hashCode();
return result;
}
@Override
public int describeContents() {
return 0;
@ -164,4 +174,4 @@ public interface SearchSpecification extends Parcelable {
}
};
}
}
}