View Javadoc
1   /*
2    * Logback: the reliable, generic, fast and flexible logging framework.
3    * Copyright (C) 1999-2023, QOS.ch. All rights reserved.
4    *
5    * This program and the accompanying materials are dual-licensed under
6    * either the terms of the Eclipse Public License v1.0 as published by
7    * the Eclipse Foundation
8    *
9    *   or (per the licensee's choosing)
10   *
11   * under the terms of the GNU Lesser General Public License version 2.1
12   * as published by the Free Software Foundation.
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  }