a11525408bf5eb58e9bf5462c7dd8ec7551885a4
[netconf.git] / restconf / restconf-nb-bierman02 / src / main / java / org / opendaylight / netconf / sal / restconf / impl / jmx / Config.java
1 /*
2  * Copyright (c) 2017 Inocybe Technologies and others.  All rights reserved.
3  *
4  * This program and the accompanying materials are made available under the
5  * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6  * and is available at http://www.eclipse.org/legal/epl-v10.html
7  */
8 package org.opendaylight.netconf.sal.restconf.impl.jmx;
9
10 public class Config {
11     private Delete delete;
12
13     private Post post;
14
15     private Get get;
16
17     private Put put;
18
19     public Delete getDelete() {
20         return delete;
21     }
22
23     public void setDelete(Delete delete) {
24         this.delete = delete;
25     }
26
27     public Post getPost() {
28         return post;
29     }
30
31     public void setPost(Post post) {
32         this.post = post;
33     }
34
35     public Get getGet() {
36         return get;
37     }
38
39     public void setGet(Get get) {
40         this.get = get;
41     }
42
43     public Put getPut() {
44         return put;
45     }
46
47     public void setPut(Put put) {
48         this.put = put;
49     }
50
51     @Override
52     public int hashCode() {
53         return java.util.Objects.hash(delete, post, get, put);
54
55     }
56
57     @Override
58     public boolean equals(Object obj) {
59         if (this == obj) {
60             return true;
61         }
62         if (obj == null || getClass() != obj.getClass()) {
63             return false;
64         }
65         final Config that = (Config) obj;
66         if (!java.util.Objects.equals(delete, that.delete)) {
67             return false;
68         }
69
70         if (!java.util.Objects.equals(post, that.post)) {
71             return false;
72         }
73
74         if (!java.util.Objects.equals(get, that.get)) {
75             return false;
76         }
77
78         return java.util.Objects.equals(put, that.put);
79
80     }
81 }