Code example for Date

Methods: hashCode

0
	@Override 
	public int hashCode() 
	{ 
		final int prime = 31;
		int result = super.hashCode();
		result = prime * result + ((date == null) ? 0 : date.hashCode());
		result = prime * result + ((email == null) ? 0 : email.hashCode());
		return result;
	} 
 
	@Override 
	public boolean equals(Object obj)
	{ 
		if (this == obj) return true;
		if (!super.equals(obj)) return false;
		if (getClass() != obj.getClass()) return false;
		StudyDefinitionMetaModel other = (StudyDefinitionMetaModel) obj;
		if (date == null)
		{ 
			if (other.date != null) return false;
		}