@Test public void testHash() { assertTrue(getTestObject().hashCode() == getTestObject().hashCode()); InstanceHeader testObject = getTestObject(); InstanceHeader anotherObject = getTestObject(); anotherObject.setCreatedBy("DifferentAuthor"); assertFalse(testObject.hashCode() == anotherObject.hashCode()); }
@Override public int hashCode() { return Objects.hash(super.hashCode(), getClassifications()); }
EntitySummary extends InstanceHeader { @Override public int hashCode() { return Objects.hash(super.hashCode(), getClassifications()); } }
EntitySummary extends InstanceHeader { @Override public int hashCode() { return Objects.hash(super.hashCode(), getClassifications()); } EntitySummary();  EntitySummary(EntitySummary   templateElement); }
EntitySummary extends InstanceHeader { @Override public int hashCode() { return Objects.hash(super.hashCode(), getClassifications()); } EntitySummary();  EntitySummary(EntitySummary   templateElement); List<Classification> getClassifications(); void setClassifications(List<Classification> classifications); @Override String toString(); @Override boolean equals(Object objectToCompare); @Override int hashCode(); }
EntitySummary extends InstanceHeader { @Override public int hashCode() { return Objects.hash(super.hashCode(), getClassifications()); } EntitySummary();  EntitySummary(EntitySummary   templateElement); List<Classification> getClassifications(); void setClassifications(List<Classification> classifications); @Override String toString(); @Override boolean equals(Object objectToCompare); @Override int hashCode();  }