added javadoc to equals and hashCode