diff options
Diffstat (limited to 'framework/src')
-rw-r--r-- | framework/src/main/java/org/onap/cli/fw/schema/OnapCommandSchemaInfo.java | 13 |
1 files changed, 9 insertions, 4 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 df30a240..8f3df9ae 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 @@ -16,18 +16,18 @@ package org.onap.cli.fw.schema; +import java.util.ArrayList; +import java.util.List; + import org.onap.cli.fw.cmd.OnapCommandType; import org.onap.cli.fw.conf.OnapCommandConstants; import org.onap.cli.fw.info.OnapCommandState; -import java.util.ArrayList; -import java.util.List; - /** * OnapCommandSchemaInfo is used in discovery caching. * */ -public class OnapCommandSchemaInfo { +public class OnapCommandSchemaInfo implements Comparable<OnapCommandSchemaInfo> { /** * Name of the schema file name @@ -138,5 +138,10 @@ public class OnapCommandSchemaInfo { this.state = state; } + @Override + public int compareTo(OnapCommandSchemaInfo o) { + return this.cmdName.compareTo(o.getCmdName()); + } + } |