Bump versions to 4.0.0-SNAPSHOT
[netconf.git] / restconf / restconf-nb-bierman02 / src / main / java / org / opendaylight / netconf / sal / restconf / impl / jmx / Get.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 import java.math.BigInteger;
11
12 public class Get {
13     private BigInteger successfulResponses;
14
15     private BigInteger receivedRequests;
16
17     private BigInteger failedResponses;
18
19     public BigInteger getSuccessfulResponses() {
20         return successfulResponses;
21     }
22
23     public void setSuccessfulResponses(BigInteger successfulResponses) {
24         this.successfulResponses = successfulResponses;
25     }
26
27     public BigInteger getReceivedRequests() {
28         return receivedRequests;
29     }
30
31     public void setReceivedRequests(BigInteger receivedRequests) {
32         this.receivedRequests = receivedRequests;
33     }
34
35     public BigInteger getFailedResponses() {
36         return failedResponses;
37     }
38
39     public void setFailedResponses(BigInteger failedResponses) {
40         this.failedResponses = failedResponses;
41     }
42
43     @Override
44     public int hashCode() {
45         return java.util.Objects.hash(successfulResponses, receivedRequests, failedResponses);
46     }
47
48     @Override
49     public boolean equals(Object obj) {
50         if (this == obj) {
51             return true;
52         }
53         if (obj == null || getClass() != obj.getClass()) {
54             return false;
55         }
56         final Get that = (Get) obj;
57         if (!java.util.Objects.equals(successfulResponses, that.successfulResponses)) {
58             return false;
59         }
60
61         if (!java.util.Objects.equals(receivedRequests, that.receivedRequests)) {
62             return false;
63         }
64
65         return java.util.Objects.equals(failedResponses, that.failedResponses);
66
67     }
68 }