diff options
author | 2018-05-02 14:34:17 +0530 | |
---|---|---|
committer | 2018-05-02 14:34:17 +0530 | |
commit | 034d62f1c76aafa32bb434962ea29485e6313442 (patch) | |
tree | 6077d3c8820e9a8c52140c4b14fd2f7a1fe8f155 /framework/src/main | |
parent | b6eefde92eea6352933679bf42bc62bb9e416742 (diff) |
Add hashCode() for SchemaInfo
Issue-ID: CLI-106
Change-Id: If8e3bc25821bbdd3c56f7f6309c43456424a173b
Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
Diffstat (limited to 'framework/src/main')
-rw-r--r-- | framework/src/main/java/org/onap/cli/fw/schema/OnapCommandSchemaInfo.java | 6 |
1 files changed, 6 insertions, 0 deletions
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<OnapCommandSchemaInfo> return this.compareTo((OnapCommandSchemaInfo) obj) == 0; } + + @Override + public int hashCode() { + return Objects.hashCode(this.cmdName); + } } |