@Test public void testEquals() { assertFalse(getTestObject().equals(null)); assertFalse(getTestObject().equals("DummyString")); assertTrue(getTestObject().equals(getTestObject())); GlossaryTermListResponse sameObject = getTestObject(); assertTrue(sameObject.equals(sameObject)); GlossaryTermListResponse differentObject = getTestObject(); differentObject.setExceptionErrorMessage("Different"); assertFalse(getTestObject().equals(differentObject)); }
@Override public boolean equals(Object objectToCompare) { if (this == objectToCompare) { return true; } if (objectToCompare == null || getClass() != objectToCompare.getClass()) { return false; } if (!super.equals(objectToCompare)) { return false; } GlossaryTermListResponse that = (GlossaryTermListResponse) objectToCompare; return getStartingFromElement() == that.getStartingFromElement() && Objects.equals(getMeanings(), that.getMeanings()); }
GlossaryTermListResponse extends FFDCResponseBase { @Override public boolean equals(Object objectToCompare) { if (this == objectToCompare) { return true; } if (objectToCompare == null || getClass() != objectToCompare.getClass()) { return false; } if (!super.equals(objectToCompare)) { return false; } GlossaryTermListResponse that = (GlossaryTermListResponse) objectToCompare; return getStartingFromElement() == that.getStartingFromElement() && Objects.equals(getMeanings(), that.getMeanings()); } }
GlossaryTermListResponse extends FFDCResponseBase { @Override public boolean equals(Object objectToCompare) { if (this == objectToCompare) { return true; } if (objectToCompare == null || getClass() != objectToCompare.getClass()) { return false; } if (!super.equals(objectToCompare)) { return false; } GlossaryTermListResponse that = (GlossaryTermListResponse) objectToCompare; return getStartingFromElement() == that.getStartingFromElement() && Objects.equals(getMeanings(), that.getMeanings()); } GlossaryTermListResponse();  GlossaryTermListResponse(GlossaryTermListResponse template); }
GlossaryTermListResponse extends FFDCResponseBase { @Override public boolean equals(Object objectToCompare) { if (this == objectToCompare) { return true; } if (objectToCompare == null || getClass() != objectToCompare.getClass()) { return false; } if (!super.equals(objectToCompare)) { return false; } GlossaryTermListResponse that = (GlossaryTermListResponse) objectToCompare; return getStartingFromElement() == that.getStartingFromElement() && Objects.equals(getMeanings(), that.getMeanings()); } GlossaryTermListResponse();  GlossaryTermListResponse(GlossaryTermListResponse template); List<GlossaryTerm> getMeanings(); void setMeanings(List<GlossaryTerm> meanings); int getStartingFromElement(); void setStartingFromElement(int startingFromElement); @Override String toString(); @Override boolean equals(Object objectToCompare); @Override int hashCode(); }
GlossaryTermListResponse extends FFDCResponseBase { @Override public boolean equals(Object objectToCompare) { if (this == objectToCompare) { return true; } if (objectToCompare == null || getClass() != objectToCompare.getClass()) { return false; } if (!super.equals(objectToCompare)) { return false; } GlossaryTermListResponse that = (GlossaryTermListResponse) objectToCompare; return getStartingFromElement() == that.getStartingFromElement() && Objects.equals(getMeanings(), that.getMeanings()); } GlossaryTermListResponse();  GlossaryTermListResponse(GlossaryTermListResponse template); List<GlossaryTerm> getMeanings(); void setMeanings(List<GlossaryTerm> meanings); int getStartingFromElement(); void setStartingFromElement(int startingFromElement); @Override String toString(); @Override boolean equals(Object objectToCompare); @Override int hashCode();  }