/** {@inheritDoc} */
 public boolean equals(Object other) {
   if (other instanceof ExprTreeIndividualSpecies) {
     ExprTreeIndividualSpecies cother = (ExprTreeIndividualSpecies) other;
     EqualsBuilder eb = new EqualsBuilder();
     eb.append(genotypeSchema, cother.genotypeSchema);
     return eb.isEquals();
   } else {
     return false;
   }
 }
 @Override
 public boolean equals(final Object o) {
   if (!(o instanceof BijdrageFrequentieEntity)) {
     return false;
   }
   BijdrageFrequentieEntity other = (BijdrageFrequentieEntity) o;
   EqualsBuilder builder = new EqualsBuilder();
   builder.append(getBijdrageFrequentieCode(), other.getBijdrageFrequentieCode());
   return builder.isEquals();
 }
Exemple #3
0
 @Override
 public boolean equals(final Object o) {
   if (!(o instanceof BewonerEntity)) {
     return false;
   }
   BewonerEntity other = (BewonerEntity) o;
   EqualsBuilder builder = new EqualsBuilder();
   builder.append(getId(), other.getId());
   return builder.isEquals();
 }
 public void equals(Object object, EqualsBuilder equalsBuilder) {
   if (!(object instanceof ConditionType)) {
     equalsBuilder.appendSuper(false);
     return;
   }
   if (this == object) {
     return;
   }
   final ConditionType that = ((ConditionType) object);
   equalsBuilder.append(this.getExpression(), that.getExpression());
 }
 /** {@inheritDoc} */
 @Override
 public boolean equals(Object other) {
   if (other instanceof MultiExprTreeIndividual) {
     MultiExprTreeIndividual cother = (MultiExprTreeIndividual) other;
     EqualsBuilder eb = new EqualsBuilder();
     eb.append(genotype, cother.genotype);
     return eb.isEquals();
   } else {
     return false;
   }
 }
Exemple #6
0
 public void equals(Object object, EqualsBuilder equalsBuilder) {
   if (!(object instanceof Document)) {
     equalsBuilder.appendSuper(false);
     return;
   }
   if (this == object) {
     return;
   }
   final Document that = ((Document) object);
   equalsBuilder.append(this.getStatementOrBundle(), that.getStatementOrBundle());
 }
Exemple #7
0
 public boolean equals(Object object) {
   if (!(object instanceof Document)) {
     return false;
   }
   if (this == object) {
     return true;
   }
   final EqualsBuilder equalsBuilder = new JAXBEqualsBuilder();
   equals(object, equalsBuilder);
   return equalsBuilder.isEquals();
 }
 public void equals(Object object, EqualsBuilder equalsBuilder) {
   if (!(object instanceof DictionaryMembership)) {
     equalsBuilder.appendSuper(false);
     return;
   }
   if (this == object) {
     return;
   }
   final DictionaryMembership that = ((DictionaryMembership) object);
   equalsBuilder.append(this.getDictionary(), that.getDictionary());
   equalsBuilder.append(this.getKeyEntityPair(), that.getKeyEntityPair());
 }
  @Override
  public boolean equals(Object obj) {
    EqualsBuilder builder = new EqualsBuilder();

    if (obj instanceof MarkupBuilder) {
      MarkupBuilder other = (MarkupBuilder) obj;
      builder.append(buffer, other.buffer);
    } else {
      builder.appendSuper(false);
    }

    return builder.isEquals();
  }
Exemple #10
0
 public void equals(Object object, EqualsBuilder equalsBuilder) {
   if (!(object instanceof Prior)) {
     equalsBuilder.appendSuper(false);
     return;
   }
   if (this == object) {
     return;
   }
   final Prior that = ((Prior) object);
   equalsBuilder.append(this.getHint(), that.getHint());
   equalsBuilder.append(this.getInitialVal(), that.getInitialVal());
   equalsBuilder.append(this.getId(), that.getId());
 }
 @Override
 public boolean equals(Object obj) {
   if (this == obj) {
     return true;
   }
   if (!(obj instanceof EnumOption)) {
     return false;
   }
   EnumOption other = (EnumOption) obj;
   EqualsBuilder builder = new EqualsBuilder();
   builder.append(id, other.id);
   return builder.isEquals();
 }
  @Override
  public final boolean equals(Object obj) {
    if (this == obj) return true;
    if (null == obj) return false;
    if (getClass() != obj.getClass()) return false;

    ConfigurationSourceIdentifier other = (ConfigurationSourceIdentifier) obj;
    EqualsBuilder equals = new EqualsBuilder();
    equals.append(referenceClass, other.referenceClass);
    equals.append(resourceName, other.resourceName);

    return equals.isEquals();
  }
  @Test
  public void testFindByDate() throws Exception {
    File emsHome = PlexusTestCase.getTestFile("target/ems-home");
    FileUtils.deleteDirectory(emsHome);

    EmsServices emsServices = new EmsServices(emsHome, 0, true, false, 0, false);
    emsServices.getDerbyService().maybeCreateTables(false);
    EventDao eventDao = emsServices.getEventDao();
    RoomDao roomDao = emsServices.getRoomDao();
    sessionDao = emsServices.getSessionDao();

    Event event = eventDao.getEventByName(eventName);

    if (event == null) {
      roomDao.save(room1);
      roomDao.save(room2);
      roomDao.save(room3);

      event = new Event();
      event.setName(eventName);
      event.setDate(sep12);
      event.setRooms(Arrays.asList(room1, room2, room3));
      eventDao.saveEvent(event);

      insertSessions(event.getId(), sep11);
      insertSessions(event.getId(), sep12);
      insertSessions(event.getId(), sep13);
    }

    List<String> list = sessionDao.findSessionsByDate(event.getId(), sep12);
    assertNotNull(list);
    assertEquals(3, list.size());
    for (int i = 0; i < list.size(); i++) {
      String id = list.get(i);

      Session session = sessionDao.getSession(id);

      assertEquals(12, session.getTimeslot().getStart().getDayOfMonth());
      assertNotNull(session.getRoom());
      assertNotNull(session.getRoom().getId());
      if (i == 0) {
        assertTrue(EqualsBuilder.reflectionEquals(room1, session.getRoom()));
      } else if (i == 1) {
        assertTrue(EqualsBuilder.reflectionEquals(room2, session.getRoom()));
      } else if (i == 2) {
        assertTrue(EqualsBuilder.reflectionEquals(room3, session.getRoom()));
      }
    }

    emsServices.stop();
  }
 /**
  * Returns true if this is equal to the given object.
  *
  * @param object the object to compare.
  * @return true if this is equal to the given object.
  */
 @Override
 public boolean equals(Object object) {
   if (object == this) {
     return true;
   }
   if (object instanceof GetStorageItems) {
     GetStorageItems compare = (GetStorageItems) object;
     EqualsBuilder equals = new EqualsBuilder();
     equals.append(this.loginId, compare.loginId);
     equals.append(this.instanceId, compare.instanceId);
     return equals.isEquals();
   }
   return false;
 }
  public boolean equals(Object obj) {
    if (!(obj instanceof PluginPackage)) {
      return false;
    }

    PluginPackage pluginPackage = (PluginPackage) obj;

    EqualsBuilder equalsBuilder = new EqualsBuilder();

    equalsBuilder.append(getModuleId(), pluginPackage.getModuleId());
    equalsBuilder.append(getRepositoryURL(), pluginPackage.getRepositoryURL());

    return equalsBuilder.isEquals();
  }
Exemple #16
0
 public void equals(Object object, EqualsBuilder equalsBuilder) {
   if (!(object instanceof BaseMqttMessage)) {
     equalsBuilder.appendSuper(false);
     return;
   }
   if (this == object) {
     return;
   }
   final BaseMqttMessage that = ((BaseMqttMessage) object);
   equalsBuilder.append(this.getValue(), that.getValue());
   equalsBuilder.append(this.getTopic(), that.getTopic());
   equalsBuilder.append(this.getQos(), that.getQos());
   equalsBuilder.append(this.isRetained(), that.isRetained());
 }
 @Override
 public boolean equals(final Object obj) {
   if (obj == this) {
     return true;
   }
   if (obj instanceof ProjectIdentifier == false) {
     return false;
   }
   final ProjectIdentifier that = (ProjectIdentifier) obj;
   final EqualsBuilder builder = new EqualsBuilder();
   builder.append(getDatabaseInstanceCode(), that.getDatabaseInstanceCode());
   builder.append(getGroupCode(), that.getGroupCode());
   builder.append(getProjectCode(), that.getProjectCode());
   return builder.isEquals();
 }
 public boolean equals(Object other) {
   if (other instanceof MultiMutator) {
     MultiMutator o = (MultiMutator) other;
     int cl = components.length;
     if (cl == o.components.length) {
       EqualsBuilder eb = new EqualsBuilder();
       for (int i = 0; i < cl; i++) eb.append(components[i], o.components[i]);
       return eb.isEquals();
     } else {
       return false;
     }
   } else {
     return false;
   }
 }
Exemple #19
0
 /*
  * (non-Javadoc)
  *
  * @see java.lang.Object#equals(java.lang.Object)
  */
 @Override
 public boolean equals(Object obj) {
   if (this == obj) {
     return true;
   }
   return EqualsBuilder.reflectionEquals(this, obj, new String[] {"id"});
 }
  public boolean equals(Object other) {

    if (this == other) return true;
    if (!(other instanceof LogRecord)) return false;

    if (other == null) return false;

    LogRecord that = (LogRecord) other;

    EqualsBuilder builder = new EqualsBuilder();

    return builder
        .append(task, that.task)
        .append(date, that.date)
        .append(event, that.event)
        .isEquals();
  }
  @Override
  public boolean equals(Object object) {
    if (!(object instanceof ManagedAlert)) {
      return false;
    }

    return EqualsBuilder.reflectionEquals(this, object);
  }
Exemple #22
0
  @Override
  public boolean equals(final Object that) {
    if (this == that) {
      return true;
    }
    if (!(that instanceof HoursByDay)) {
      return false;
    }

    final HoursByDay accAct = (HoursByDay) that;

    final EqualsBuilder equalsBuilder = new EqualsBuilder();

    equalsBuilder.append(day.getYear(), accAct.day.getYear());
    equalsBuilder.append(day.getDayOfYear(), accAct.day.getDayOfYear());

    return equalsBuilder.isEquals();
  }
 @Override
 public boolean equals(Object obj) {
   if (obj == null) {
     return false;
   }
   if (obj == this) {
     return true;
   }
   if (obj.getClass() != getClass()) {
     return false;
   }
   Environment rhs = (Environment) obj;
   EqualsBuilder builder = new EqualsBuilder(); // TODO consider adding
   // .appendSuper(super.equals(obj)) - similar
   // to Node.equals
   builder.append(name, rhs.name);
   builder.append(hosts, rhs.hosts);
   return builder.isEquals();
 }
  @Override
  public boolean equals(Object obj) {
    if (this == obj) return true;

    if (obj == null) return false;

    if (getClass() != obj.getClass()) return false;

    return EqualsBuilder.reflectionEquals(this, obj);
  }
Exemple #25
0
  /**
   * {@inheritDoc}
   *
   * @see edu.hm.basic.object.AbstractBasicObject#equals(java.lang.Object)
   */
  @Override
  public boolean equals(Object obj) {
    if (this == obj) {
      return true;
    }
    if (obj == null) {
      return false;
    }
    if (!(obj instanceof EspExaminer)) {
      return false;
    }

    EspExaminer examiner = (EspExaminer) obj;

    EqualsBuilder eb = new EqualsBuilder();
    eb.append(getLoginName(), examiner.getLoginName());
    eb.append(getDisplayName(), examiner.getDisplayName());

    return eb.isEquals();
  }
Exemple #26
0
 /** 两个实例是否相等 */
 public boolean equals(Object o) {
   if (o == null) {
     return false;
   }
   if (this == o) {
     return true;
   }
   if (getClass() != o.getClass()) {
     return false;
   }
   return EqualsBuilder.reflectionEquals(this, o);
 }
  /* (non-Javadoc)
   * @see java.lang.Object#equals(java.lang.Object)
   */
  @Override
  public boolean equals(Object obj) {
    if (!(obj instanceof ShareRequestDetails)) {
      return false;
    }

    ShareRequestDetails rhs = (ShareRequestDetails) obj;
    EqualsBuilder builder = new EqualsBuilder();
    builder.append(this.pathData, rhs.pathData);
    builder.append(this.displayFormat, rhs.displayFormat);
    builder.append(this.client, rhs.client);
    builder.append(this.ipAddress, rhs.ipAddress);
    builder.append(this.overrideBreakRecurrence, rhs.overrideBreakRecurrence);
    builder.append(this.overrideConvertClass, rhs.overrideConvertClass);
    return builder.isEquals();
  }
Exemple #28
0
 /** {@inheritDoc} */
 public boolean equals(Object obj) {
   if (!(obj instanceof AbstractErrata)) {
     return false;
   }
   AbstractErrata e = (AbstractErrata) obj;
   EqualsBuilder eb = new EqualsBuilder();
   eb.append(this.getAdvisory(), e.getAdvisory());
   eb.append(this.getAdvisoryName(), e.getAdvisoryName());
   eb.append(this.getAdvisoryRel(), e.getAdvisoryRel());
   eb.append(this.getAdvisorySynopsis(), e.getAdvisorySynopsis());
   eb.append(this.getOrg(), e.getOrg());
   return eb.isEquals();
 }
 public void equals(Object object, EqualsBuilder equalsBuilder) {
   if (!(object instanceof WasAssociatedWith)) {
     equalsBuilder.appendSuper(false);
     return;
   }
   if (this == object) {
     return;
   }
   final WasAssociatedWith that = ((WasAssociatedWith) object);
   equalsBuilder.append(this.getActivity(), that.getActivity());
   equalsBuilder.append(this.getAgent(), that.getAgent());
   equalsBuilder.append(this.getPlan(), that.getPlan());
   equalsBuilder.append(this.getLabel(), that.getLabel());
   equalsBuilder.append(this.getRole(), that.getRole());
   equalsBuilder.append(this.getType(), that.getType());
   equalsBuilder.append(this.getOther(), that.getOther());
   equalsBuilder.append(this.getId(), that.getId());
 }
 @Override
 public boolean equals(Object o) {
   return EqualsBuilder.reflectionEquals(
       this,
       o,
       new String[] {
         "abn",
         "entityName",
         "firstName",
         "lastName",
         "joinDate",
         "renewalDate",
         "contactNumber",
         "paymenType",
         ""
       });
 }