aboutsummaryrefslogtreecommitdiffstats
path: root/framework/src/main/java/org/onap
diff options
context:
space:
mode:
authorKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>2018-05-02 14:34:17 +0530
committerKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>2018-05-02 14:34:17 +0530
commit034d62f1c76aafa32bb434962ea29485e6313442 (patch)
tree6077d3c8820e9a8c52140c4b14fd2f7a1fe8f155 /framework/src/main/java/org/onap
parentb6eefde92eea6352933679bf42bc62bb9e416742 (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/java/org/onap')
-rw-r--r--framework/src/main/java/org/onap/cli/fw/schema/OnapCommandSchemaInfo.java6
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);
+ }
}