Example #1
0
  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);
  }
Example #2
0
 public boolean isEquivalent(IRelationship c) {
   return (getClass().equals(c.getClass())) && hasGenerated(c.getGenerated());
 }