Prevent ConfigPusher from killing its thread
[controller.git] / opendaylight / md-sal / sal-rest-connector / src / test / java / org / opendaylight / controller / sal / restconf / impl / test / structures / Cont.java
1 package org.opendaylight.controller.sal.restconf.impl.test.structures;
2
3 public class Cont extends LstItem {
4     String name = null;
5
6     public Cont(String name) {
7         super();
8         this.name = name;
9     }
10
11     public String getName() {
12         return name;
13     }
14
15     @Override
16     public boolean equals(Object obj) {
17         if (this == obj) {
18             return true;
19         }
20         if (!this.getClass().equals(obj.getClass())) {
21             return false;
22         }
23         if (!super.equals(obj)) {
24             return false;
25         }
26         Cont cont = (Cont) obj;
27         if (this.name == null) {
28             if (cont.name != null) {
29                 return false;
30             }
31         } else if (!this.name.equals(cont.name)) {
32             return false;
33         }
34         return true;
35     }
36
37     @Override
38     public int hashCode() {
39         final int prime = 31;
40         int result = super.hashCode();
41         result = prime * result + ((this.name == null) ? 0 : this.name.hashCode());
42         return result;
43     }
44
45     @Override
46     public String toString() {
47         return name;
48     }
49
50 }