aboutsummaryrefslogtreecommitdiffstats
path: root/framework/src/main
diff options
context:
space:
mode:
authorKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>2018-04-26 10:25:48 +0530
committerKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>2018-04-26 11:21:52 +0530
commit9a2c447052ea28083c0468ccb8825c5b5e332a59 (patch)
tree70da3df45a18bbf50a1d965d57f902530c4ee7ba /framework/src/main
parentfb7869ef13d97375e42affffc5a90405fecda604 (diff)
Add equals interface to SchemaInfo
Issue-ID: CLI-100 Change-Id: I3bcd7a23d107e5cf00ee558fca5dee2b0b34d900 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.java5
1 files changed, 4 insertions, 1 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 8f3df9ae..2cd9458a 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
@@ -143,5 +143,8 @@ public class OnapCommandSchemaInfo implements Comparable<OnapCommandSchemaInfo>
return this.cmdName.compareTo(o.getCmdName());
}
-
+ @Override
+ public boolean equals(Object obj) {
+ return this.compareTo((OnapCommandSchemaInfo) obj) == 0;
+ }
}