COMPRESS-475 implement equals and hashCode