From 034d62f1c76aafa32bb434962ea29485e6313442 Mon Sep 17 00:00:00 2001 From: Kanagaraj Manickam k00365106 Date: Wed, 2 May 2018 14:34:17 +0530 Subject: Add hashCode() for SchemaInfo Issue-ID: CLI-106 Change-Id: If8e3bc25821bbdd3c56f7f6309c43456424a173b Signed-off-by: Kanagaraj Manickam k00365106 --- .../src/main/java/org/onap/cli/fw/schema/OnapCommandSchemaInfo.java | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'framework') diff --git a/framework/src/main/java/org/onap/cli/fw/schema/OnapCommandSchemaInfo.java b/framework/src/main/java/org/onap/cli/fw/schema/OnapCommandSchemaInfo.java index d4776e16..a4703256 100644 --- a/framework/src/main/java/org/onap/cli/fw/schema/OnapCommandSchemaInfo.java +++ b/framework/src/main/java/org/onap/cli/fw/schema/OnapCommandSchemaInfo.java @@ -18,6 +18,7 @@ package org.onap.cli.fw.schema; import java.util.ArrayList; import java.util.List; +import java.util.Objects; import org.onap.cli.fw.cmd.OnapCommandType; import org.onap.cli.fw.conf.OnapCommandConstants; @@ -154,4 +155,9 @@ public class OnapCommandSchemaInfo implements Comparable return this.compareTo((OnapCommandSchemaInfo) obj) == 0; } + + @Override + public int hashCode() { + return Objects.hashCode(this.cmdName); + } } -- cgit 1.2.3-korg