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