首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 移动开发 > 移动开发 >

接口开发中应验返回结果类型(String HashMap Map)

2012-06-28 
接口开发中验证返回结果类型(String HashMap Map)/*if(_resp instanceof Map){System.out.println(res:Ma

接口开发中验证返回结果类型(String HashMap Map)
/*
if(_resp instanceof Map)
   {
        System.out.println("res:Map");
   }
else if (_resp instanceof AnyType2AnyTypeMap)
   {
        System.out.println("res:AnyType2AnyTypeMap");
   }
else if (_resp instanceof AnyType2AnyTypeMapEntry)
   {
        System.out.println("res:AnyType2AnyTypeMapEntry");
   }
else
   {
        System.out.println("Invoke:"+_resp.getClass().getName());
        //System.out.println(_resp.getClass().getInterfaces());
   }


*/

热点排行