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