1
2
3
4
5
6
7
8
9
10
11
12
13
14
15 package ch.qos.logback.classic.spi;
16
17 import ch.qos.logback.classic.LoggerContext;
18
19 import java.util.Map;
20 import java.util.Objects;
21
22
23
24
25
26
27 public class PubLoggerContextVO extends LoggerContextVO {
28
29
30 public PubLoggerContextVO(LoggerContext lc) {
31 super(lc);
32 }
33
34 public PubLoggerContextVO(String name, Map<String, String> propertyMap, long birthTime) {
35 super(name, propertyMap, birthTime);
36 }
37
38 public void setName(String name) {
39 this.name = name;
40 }
41
42 public void setPropertyMap(Map<String, String> propertyMap) {
43 this.propertyMap = propertyMap;
44 }
45
46
47 public void setBirthTime(long birthTime) {
48 this.birthTime = birthTime;
49 }
50
51 @Override
52 public boolean equals(Object o) {
53 if (this == o)
54 return true;
55 if (o == null || getClass() != o.getClass())
56 return false;
57 PubLoggerContextVO that = (PubLoggerContextVO) o;
58 return birthTime == that.birthTime && Objects.equals(name, that.name) && Objects.equals(propertyMap,
59 that.propertyMap);
60 }
61
62 @Override
63 public int hashCode() {
64 return Objects.hash(name, propertyMap, birthTime);
65 }
66 }