Esempio n. 1
0
 /**
  * Generates a clone of an entry. It creates a new list to store the attributes. So, the attribute
  * data is preserved, but you can change the list as desired.
  *
  * @return Clone
  */
 @Override
 public BaseEntry clone() {
   BaseEntry copy;
   try {
     copy = (BaseEntry) super.clone();
   } catch (CloneNotSupportedException c) {
     throw new Error(c);
   }
   copy.AttributeList = new ArrayList<>(AttributeList);
   copy.Class = this.Class;
   copy.PredictedClass = this.PredictedClass;
   copy.measured = this.measured;
   copy.predicted = this.predicted;
   return copy;
 }