public boolean isEqual(IRelationship RelationshipToCheck) { String thisId = getId(); String thatId = RelationshipToCheck.getId(); if ((thisId == null) || (thatId == null)) { throw new IllegalArgumentException("One of the arguments is missing an ID."); } return thisId.equals(thatId); }
public boolean isEquivalent(IRelationship c) { return (getClass().equals(c.getClass())) && hasGenerated(c.getGenerated()); }