d867ca23b1b8041bae42e2b79579b8b1ae01f1e0
[ccsdk/sli.git] /
1 package org.opendaylight.yang.gen.v1.org.onap.ccsdk.sli.core.sliapi.rev161110.test.results;
2 import org.opendaylight.yangtools.yang.binding.Identifier;
3 import java.util.Objects;
4
5 public class TestResultKey
6  implements Identifier<TestResult> {
7     private static final long serialVersionUID = 3857649555637491806L;
8     private final java.lang.String _testIdentifier;
9
10
11     public TestResultKey(java.lang.String _testIdentifier) {
12     
13     
14         this._testIdentifier = _testIdentifier;
15     }
16     
17     /**
18      * Creates a copy from Source Object.
19      *
20      * @param source Source object
21      */
22     public TestResultKey(TestResultKey source) {
23         this._testIdentifier = source._testIdentifier;
24     }
25
26
27     public java.lang.String getTestIdentifier() {
28         return _testIdentifier;
29     }
30
31
32     @Override
33     public int hashCode() {
34         final int prime = 31;
35         int result = 1;
36         result = prime * result + Objects.hashCode(_testIdentifier);
37         return result;
38     }
39
40     @Override
41     public boolean equals(java.lang.Object obj) {
42         if (this == obj) {
43             return true;
44         }
45         if (obj == null) {
46             return false;
47         }
48         if (getClass() != obj.getClass()) {
49             return false;
50         }
51         TestResultKey other = (TestResultKey) obj;
52         if (!Objects.equals(_testIdentifier, other._testIdentifier)) {
53             return false;
54         }
55         return true;
56     }
57
58     @Override
59     public java.lang.String toString() {
60         java.lang.StringBuilder builder = new java.lang.StringBuilder(org.opendaylight.yang.gen.v1.org.onap.ccsdk.sli.core.sliapi.rev161110.test.results.TestResultKey.class.getSimpleName()).append(" [");
61         boolean first = true;
62     
63         if (_testIdentifier != null) {
64             if (first) {
65                 first = false;
66             } else {
67                 builder.append(", ");
68             }
69             builder.append("_testIdentifier=");
70             builder.append(_testIdentifier);
71          }
72         return builder.append(']').toString();
73     }
74 }
75