public boolean hasPara(String cmdName, String value)
{
Hashtable data = getCmdParamMap(cmdName);
if(data == null)
{
return false;
}
Iterator itor = data.keySet().iterator();
Object next;
while(itor.hasNext())
{
next = itor.next();
if(((CmdInParamInfo)(data.get(next))).cName.equals(value))
{
return true;
}
}
return false;
public boolean hasPara
最新推荐文章于 2023-07-31 10:56:18 发布
本文介绍了一种用于检查命令参数是否包含特定值的方法。该方法通过获取命令参数映射并遍历其键值对来实现,最终返回指定值是否存在。
1018

被折叠的 条评论
为什么被折叠?



