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