コード例 #1
0
 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());
 }
コード例 #2
0
ファイル: Document.java プロジェクト: joansmith/ProvToolbox
 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());
 }
コード例 #3
0
 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());
 }
コード例 #4
0
ファイル: Prior.java プロジェクト: Biomathapha/Broadwick
 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());
 }
コード例 #5
0
  @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();
  }
コード例 #6
0
ファイル: BaseMqttMessage.java プロジェクト: 0x7678/mqtt-spy
 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());
 }
コード例 #7
0
ファイル: RuleType.java プロジェクト: jjsendor/fiware-ppl
 public void equals(Object object, EqualsBuilder equalsBuilder) {
   if (!(object instanceof RuleType)) {
     equalsBuilder.appendSuper(false);
     return;
   }
   if (this == object) {
     return;
   }
   super.equals(object, equalsBuilder);
   final RuleType that = ((RuleType) object);
   equalsBuilder.append(this.getDataHandlingPolicy(), that.getDataHandlingPolicy());
   equalsBuilder.append(this.getDataHandlingPreferences(), that.getDataHandlingPreferences());
   equalsBuilder.append(this.getStickyPolicy(), that.getStickyPolicy());
   equalsBuilder.append(this.getCredentialRequirements(), that.getCredentialRequirements());
   equalsBuilder.append(this.getProvisionalActions(), that.getProvisionalActions());
 }
コード例 #8
0
 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());
 }
コード例 #9
0
ファイル: MGG.java プロジェクト: jahguide89/JClec4
 @Override
 public boolean equals(Object other) {
   if (other instanceof MGG) {
     MGG cother = (MGG) other;
     EqualsBuilder eb = new EqualsBuilder();
     // Call super method
     eb.appendSuper(super.equals(other));
     // Mu
     eb.append(mu, cother.mu);
     // Lambda
     eb.append(lambda, cother.lambda);
     // Recombinator
     eb.append(recombinator, cother.recombinator);
     // Return test result
     return eb.isEquals();
   } else {
     return false;
   }
 }