001package ch.qos.logback.classic.model; 002 003import java.util.Objects; 004 005import ch.qos.logback.core.model.Model; 006import ch.qos.logback.core.util.Duration; 007 008public class ConfigurationModel extends Model { 009 010 private static final long serialVersionUID = 1286156598561818515L; 011 012 String debugStr; 013 String scanStr; 014 String scanPeriodStr; 015 String packagingDataStr; 016 017 @Override 018 protected ConfigurationModel makeNewInstance() { 019 return new ConfigurationModel(); 020 } 021 022 @Override protected void mirror(Model that) { 023 ConfigurationModel actual = (ConfigurationModel) that; 024 super.mirror(that); 025 this.debugStr = actual.debugStr; 026 this.scanStr = actual.scanStr; 027 this.scanPeriodStr = actual.scanPeriodStr; 028 this.packagingDataStr = actual.packagingDataStr; 029 } 030 031 public String getDebugStr() { 032 return debugStr; 033 } 034 035 public void setDebugStr(String debugStr) { 036 this.debugStr = debugStr; 037 } 038 039 public String getScanStr() { 040 return scanStr; 041 } 042 043 public void setScanStr(String scanStr) { 044 this.scanStr = scanStr; 045 } 046 047 public String getScanPeriodStr() { 048 return scanPeriodStr; 049 } 050 051 public void setScanPeriodStr(String scanPeriodStr) { 052 this.scanPeriodStr = scanPeriodStr; 053 } 054 055 public String getPackagingDataStr() { 056 return packagingDataStr; 057 } 058 059 public void setPackagingDataStr(String packagingDataStr) { 060 this.packagingDataStr = packagingDataStr; 061 } 062 063 @Override 064 public int hashCode() { 065 final int prime = 31; 066 int result = super.hashCode(); 067 result = prime * result + Objects.hash(debugStr, packagingDataStr, scanPeriodStr, scanStr); 068 return result; 069 } 070 071 @Override 072 public boolean equals(Object obj) { 073 if (this == obj) 074 return true; 075 if (!super.equals(obj)) 076 return false; 077 if (getClass() != obj.getClass()) 078 return false; 079 ConfigurationModel other = (ConfigurationModel) obj; 080 return Objects.equals(debugStr, other.debugStr) && Objects.equals(packagingDataStr, other.packagingDataStr) 081 && Objects.equals(scanPeriodStr, other.scanPeriodStr) && Objects.equals(scanStr, other.scanStr); 082 } 083 084}