コード例 #1
0
ファイル: BaseMqttMessage.java プロジェクト: 0x7678/mqtt-spy
 public Object copyTo(Object target, CopyBuilder copyBuilder) {
   final BaseMqttMessage copy =
       ((target == null) ? ((BaseMqttMessage) createCopy()) : ((BaseMqttMessage) target));
   {
     String sourceValue;
     sourceValue = this.getValue();
     String copyValue = ((String) copyBuilder.copy(sourceValue));
     copy.setValue(copyValue);
   }
   {
     String sourceTopic;
     sourceTopic = this.getTopic();
     String copyTopic = ((String) copyBuilder.copy(sourceTopic));
     copy.setTopic(copyTopic);
   }
   {
     Integer sourceQos;
     sourceQos = this.getQos();
     Integer copyQos = ((Integer) copyBuilder.copy(sourceQos));
     copy.setQos(copyQos);
   }
   {
     Boolean sourceRetained;
     sourceRetained = this.isRetained();
     Boolean copyRetained = ((Boolean) copyBuilder.copy(sourceRetained));
     copy.setRetained(copyRetained);
   }
   return copy;
 }
コード例 #2
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());
 }