@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(), relationshipProperties, getEntityOneProxy(), getEntityTwoProxy()); }
Relationship extends InstanceHeader { @Override public int hashCode() { return Objects.hash(super.hashCode(), relationshipProperties, getEntityOneProxy(), getEntityTwoProxy()); } }
Relationship extends InstanceHeader { @Override public int hashCode() { return Objects.hash(super.hashCode(), relationshipProperties, getEntityOneProxy(), getEntityTwoProxy()); } Relationship();  Relationship(Relationship templateElement); }
Relationship extends InstanceHeader { @Override public int hashCode() { return Objects.hash(super.hashCode(), relationshipProperties, getEntityOneProxy(), getEntityTwoProxy()); } Relationship();  Relationship(Relationship templateElement); boolean relatedToEntity(String  entityGUID); String returnLinkedEntity(String  entityGUID); InstanceProperties getProperties(); void setProperties(InstanceProperties  newProperties); EntityProxy getEntityOneProxy(); void setEntityOneProxy(EntityProxy entityOneProxy); EntityProxy getEntityTwoProxy(); void setEntityTwoProxy(EntityProxy entityTwoProxy); @Override String toString(); @Override boolean equals(Object objectToCompare); @Override int hashCode(); }
Relationship extends InstanceHeader { @Override public int hashCode() { return Objects.hash(super.hashCode(), relationshipProperties, getEntityOneProxy(), getEntityTwoProxy()); } Relationship();  Relationship(Relationship templateElement); boolean relatedToEntity(String  entityGUID); String returnLinkedEntity(String  entityGUID); InstanceProperties getProperties(); void setProperties(InstanceProperties  newProperties); EntityProxy getEntityOneProxy(); void setEntityOneProxy(EntityProxy entityOneProxy); EntityProxy getEntityTwoProxy(); void setEntityTwoProxy(EntityProxy entityTwoProxy); @Override String toString(); @Override boolean equals(Object objectToCompare); @Override int hashCode();  }