DocumentQueryParams { @Override public int hashCode() { int hashCode = 0; if (NullChecker.isNotNullish(patientId)) { hashCode = patientId.hashCode(); if (NullChecker.isNotNullish(classCodes)) { hashCode += classCodes.hashCode(); } } return hashCode; }  List<String> getClassCodes(); List<SlotType1> getSlots(); void setSlots(List<SlotType1> slots); void setClassCodes(List<String> classCodes); String getClassCodeScheme(); void setClassCodeScheme(String classCodeScheme); Date getCreationTimeFrom(); void setCreationTimeFrom(Date creationTimeFrom); Date getCreationTimeTo(); void setCreationTimeTo(Date creationTimeTo); List<String> getDocumentUniqueIds(); void setDocumentUniqueId(List<String> documentUniqueIds); String getPatientId(); void setPatientId(String patientId); Date getServiceStartTimeFrom(); void setServiceStartTimeFrom(Date serviceStartTimeFrom); Date getServiceStartTimeTo(); void setServiceStartTimeTo(Date serviceStartTimeTo); Date getServiceStopTimeFrom(); void setServiceStopTimeFrom(Date serviceStopTimeFrom); Date getServiceStopTimeTo(); void setServiceStopTimeTo(Date serviceStopTimeTo); List<String> getStatuses(); void setStatuses(List<String> statuses); List<EventCodeParam> getEventCodeParams(); void setEventCodeParams(List<EventCodeParam> eventCodeParams); Boolean getOnDemand(); void setOnDemandParams(Boolean onDemand); @Override int hashCode(); @Override boolean equals(Object obj);  }
@Test public void testHashCode() { DocumentQueryParams param = new DocumentQueryParams(); String patientId = "Patient ID 1"; param.setPatientId(patientId); assertEquals(param.hashCode(), patientId.hashCode()); }