### Question:
ResourceIndexedSearchParamDate extends BaseResourceIndexedSearchParam { @Override public boolean equals(Object theObj) { if (this == theObj) { return true; } if (theObj == null) { return false; } if (!(theObj instanceof ResourceIndexedSearchParamDate)) { return false; } ResourceIndexedSearchParamDate obj = (ResourceIndexedSearchParamDate) theObj; EqualsBuilder b = new EqualsBuilder(); b.append(getResourceType(), obj.getResourceType()); b.append(getParamName(), obj.getParamName()); b.append(getTimeFromDate(getValueHigh()), getTimeFromDate(obj.getValueHigh())); b.append(getTimeFromDate(getValueLow()), getTimeFromDate(obj.getValueLow())); b.append(isMissing(), obj.isMissing()); return b.isEquals(); } ResourceIndexedSearchParamDate();  ResourceIndexedSearchParamDate(PartitionSettings thePartitionSettings, String theResourceType, String theParamName, Date theLow, String theLowString, Date theHigh, String theHighString, String theOriginalValue); Integer getValueLowDateOrdinal(); Integer getValueHighDateOrdinal(); @Override void copyMutableValuesFrom(T theSource); @Override void calculateHashes(); @Override boolean equals(Object theObj); void setHashIdentity(Long theHashIdentity); @Override Long getId(); @Override void setId(Long theId); Date getValueHigh(); ResourceIndexedSearchParamDate setValueHigh(Date theValueHigh); Date getValueLow(); ResourceIndexedSearchParamDate setValueLow(Date theValueLow); @Override int hashCode(); @Override IQueryParameterType toQueryParameterType(); @Override String toString(); @SuppressWarnings("ConstantConditions") @Override boolean matches(IQueryParameterType theParam, boolean theUseOrdinalDatesForDayComparison); static Long calculateOrdinalValue(Date theDate); @Column(name = "SP_VALUE_HIGH", nullable = true)
	@Temporal(TemporalType.TIMESTAMP)
	@Field
	public Date myValueHigh; @Column(name = "SP_VALUE_LOW", nullable = true)
	@Temporal(TemporalType.TIMESTAMP)
	@Field
	public Date myValueLow; @Column(name = "SP_VALUE_LOW_DATE_ORDINAL")
	public Integer myValueLowDateOrdinal; @Column(name = "SP_VALUE_HIGH_DATE_ORDINAL")
	public Integer myValueHighDateOrdinal; }### Answer:
@Test public void testEquals() { ResourceIndexedSearchParamDate val1 = new ResourceIndexedSearchParamDate() .setValueHigh(new Date(100000000L)) .setValueLow(new Date(111111111L)); val1.setPartitionSettings(new PartitionSettings()); val1.calculateHashes(); ResourceIndexedSearchParamDate val2 = new ResourceIndexedSearchParamDate() .setValueHigh(new Date(100000000L)) .setValueLow(new Date(111111111L)); val2.setPartitionSettings(new PartitionSettings()); val2.calculateHashes(); assertEquals(val1, val1); assertEquals(val1, val2); assertNotEquals(val1, null); assertNotEquals(val1, ""); }