1   
2   
3   
4   
5   
6   
7   
8   
9   
10  
11  
12  
13  
14  
15  package ch.qos.logback.core.model;
16  
17  import java.util.Objects;
18  
19  public class SerializeModelModel extends Model {
20  
21      private static final long serialVersionUID = 16385651235687L;
22  
23      String file;
24  
25      @Override
26      protected SerializeModelModel makeNewInstance() {
27          return new SerializeModelModel();
28      }
29  
30      public String getFile() {
31          return file;
32      }
33  
34      public void setFile(String file) {
35          this.file = file;
36      }
37  
38      @Override
39      public boolean equals(Object o) {
40          if (this == o)
41              return true;
42          if (o == null || getClass() != o.getClass())
43              return false;
44          if (!super.equals(o))
45              return false;
46          SerializeModelModel that = (SerializeModelModel) o;
47          return Objects.equals(file, that.file);
48      }
49  
50      @Override
51      public int hashCode() {
52          return Objects.hash(super.hashCode(), file);
53      }
54  }