overrided hash() and equals() and remove vague parameter in ItemComparator constructor