SerializeModelModel.java
/*
* Logback: the reliable, generic, fast and flexible logging framework.
* Copyright (C) 1999-2023, QOS.ch. All rights reserved.
*
* This program and the accompanying materials are dual-licensed under
* either the terms of the Eclipse Public License v1.0 as published by
* the Eclipse Foundation
*
* or (per the licensee's choosing)
*
* under the terms of the GNU Lesser General Public License version 2.1
* as published by the Free Software Foundation.
*/
package ch.qos.logback.core.model;
import java.util.Objects;
public class SerializeModelModel extends Model {
private static final long serialVersionUID = 16385651235687L;
String file;
@Override
protected SerializeModelModel makeNewInstance() {
return new SerializeModelModel();
}
public String getFile() {
return file;
}
public void setFile(String file) {
this.file = file;
}
@Override
public boolean equals(Object o) {
if (this == o)
return true;
if (o == null || getClass() != o.getClass())
return false;
if (!super.equals(o))
return false;
SerializeModelModel that = (SerializeModelModel) o;
return Objects.equals(file, that.file);
}
@Override
public int hashCode() {
return Objects.hash(super.hashCode(), file);
}
}