5d9989b535d641940acbcf39824bfc6e88f613ab
[netconf.git] / restconf / restconf-nb-bierman02 / src / main / java / org / opendaylight / netconf / sal / restconf / impl / jmx / Operational.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 Operational {
11     private Get get;
12
13     public Get getGet() {
14         return get;
15     }
16
17     public void setGet(Get get) {
18         this.get = get;
19     }
20
21     @Override
22     public int hashCode() {
23         return java.util.Objects.hash(get);
24     }
25
26     @Override
27     public boolean equals(Object obj) {
28         if (this == obj) {
29             return true;
30         }
31         if (obj == null || getClass() != obj.getClass()) {
32             return false;
33         }
34         final Operational that = (Operational) obj;
35         return java.util.Objects.equals(get, that.get);
36
37     }
38 }