コード例 #1
0
 public boolean equals(Object otherObject) {
   if (otherObject == null) return false;
   if (this == otherObject) return true;
   if (this.getClass() != otherObject.getClass()) return false;
   LECRecommendationSchema other = (LECRecommendationSchema) otherObject;
   if (recommend == null && other.getRecommend() != null) return false;
   if (recommend != null && !recommend.equals(other.getRecommend())) return false;
   if (recommended == null && other.getRecommended() != null) return false;
   if (recommended != null && !recommended.equals(other.getRecommended())) return false;
   if (sendtimes != other.getSendtimes()) return false;
   if (success == null && other.getSuccess() != null) return false;
   if (success != null && !success.equals(other.getSuccess())) return false;
   if (registered == null && other.getRegistered() != null) return false;
   if (registered != null && !registered.equals(other.getRegistered())) return false;
   if (field1 == null && other.getField1() != null) return false;
   if (field1 != null && !field1.equals(other.getField1())) return false;
   if (field2 == null && other.getField2() != null) return false;
   if (field2 != null && !field2.equals(other.getField2())) return false;
   if (field3 == null && other.getField3() != null) return false;
   if (field3 != null && !field3.equals(other.getField3())) return false;
   if (makedate == null && other.getMakedate() != null) return false;
   if (makedate != null && !makedate.equals(other.getMakedate())) return false;
   if (maketime == null && other.getMaketime() != null) return false;
   if (maketime != null && !maketime.equals(other.getMaketime())) return false;
   if (modifydate == null && other.getModifydate() != null) return false;
   if (modifydate != null && !modifydate.equals(other.getModifydate())) return false;
   if (modifytime == null && other.getModifytime() != null) return false;
   if (modifytime != null && !modifytime.equals(other.getModifytime())) return false;
   return true;
 }
コード例 #2
0
 /**
  * 使用另外一个 LECRecommendationSchema 对象给 Schema 赋值
  *
  * @param: aLECRecommendationSchema LECRecommendationSchema
  */
 public void setSchema(LECRecommendationSchema aLECRecommendationSchema) {
   this.recommend = aLECRecommendationSchema.getRecommend();
   this.recommended = aLECRecommendationSchema.getRecommended();
   this.sendtimes = aLECRecommendationSchema.getSendtimes();
   this.success = aLECRecommendationSchema.getSuccess();
   this.registered = aLECRecommendationSchema.getRegistered();
   this.field1 = aLECRecommendationSchema.getField1();
   this.field2 = aLECRecommendationSchema.getField2();
   this.field3 = aLECRecommendationSchema.getField3();
   this.makedate = aLECRecommendationSchema.getMakedate();
   this.maketime = aLECRecommendationSchema.getMaketime();
   this.modifydate = aLECRecommendationSchema.getModifydate();
   this.modifytime = aLECRecommendationSchema.getModifytime();
 }