aboutsummaryrefslogtreecommitdiffstats
path: root/vpp-api/java/jvpp-registry
diff options
context:
space:
mode:
authorMaros Marsalek <mmarsale@cisco.com>2016-09-16 16:17:58 +0200
committerDamjan Marion <dmarion.lists@gmail.com>2016-09-20 13:20:37 +0000
commita53b0e29098725ecc20e8355e955c1307ce3dd8d (patch)
tree4c23f8a520d1359f9f764d5b3d01c3ef4058fd14 /vpp-api/java/jvpp-registry
parente83b7d5d01f8c0033f60b12f1af84e69bc85aade (diff)
VPP-413 DTOs generated by JVpp improvements:
- hashCode & equals - toString Change-Id: I5f8bc8868c216862a307dcc8f6b423f0ce29e7b5 Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
Diffstat (limited to 'vpp-api/java/jvpp-registry')
-rw-r--r--vpp-api/java/jvpp-registry/org/openvpp/jvpp/dto/ControlPingReply.java28
1 files changed, 28 insertions, 0 deletions
diff --git a/vpp-api/java/jvpp-registry/org/openvpp/jvpp/dto/ControlPingReply.java b/vpp-api/java/jvpp-registry/org/openvpp/jvpp/dto/ControlPingReply.java
index e7efd8595d6..6377fcdfa1a 100644
--- a/vpp-api/java/jvpp-registry/org/openvpp/jvpp/dto/ControlPingReply.java
+++ b/vpp-api/java/jvpp-registry/org/openvpp/jvpp/dto/ControlPingReply.java
@@ -16,6 +16,8 @@
package org.openvpp.jvpp.dto;
+import java.util.Objects;
+
/**
* Represents reply DTO for control_ping message.
*/
@@ -25,6 +27,32 @@ public final class ControlPingReply implements JVppReply<ControlPing> {
public int clientIndex;
public int vpePid;
+ @Override
+ public boolean equals(final Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (o == null || getClass() != o.getClass()) {
+ return false;
+ }
+ final ControlPingReply that = (ControlPingReply) o;
+ return context == that.context &&
+ clientIndex == that.clientIndex &&
+ vpePid == that.vpePid;
+ }
+
+ @Override
+ public int hashCode() {
+ return Objects.hash(context, clientIndex, vpePid);
+ }
+ @Override
+ public String toString() {
+ return "ControlPingReply{" +
+ "context=" + context +
+ ", clientIndex=" + clientIndex +
+ ", vpePid=" + vpePid +
+ '}';
+ }
}