コード例 #1
0
 @Override
 public boolean equals(Object obj) {
   if (obj == this) {
     return true;
   }
   if (obj != null && obj.getClass() == this.getClass()) {
     ScenarioDefinition other = (ScenarioDefinition) obj;
     return JodaBeanUtils.equal(getScenarios(), other.getScenarios());
   }
   return false;
 }
コード例 #2
0
 /**
  * Restricted copy constructor.
  *
  * @param beanToCopy the bean to copy from, not null
  */
 private Builder(ScenarioDefinition beanToCopy) {
   this._scenarios = new ArrayList<SingleScenarioDefinition>(beanToCopy.getScenarios());
 }