implement hashcode for DiffItem