Examples of QunMessages


Examples of com.lanyuan.entity.QunMessages

         lists.add(entity.getValue());//存放次数
       };
      Collections.sort(lists);//Collections内置提供的升序
      for (Integer sb : lists) {
         for (Map.Entry<String, Integer> entity : strMap.entrySet()) { 
           QunMessages qq=new QunMessages();
           Integer value = entity.getValue();
          if(value.equals(sb)){
            //System.out.println(entity.getKey()+":发表 "+entity.getValue()+" 次");
            boolean b = false;
            String map = entity.getKey();
            String sun="";
            String name="";
            if(map.lastIndexOf("(")>-1&&map.lastIndexOf(")")>-1){
              sun = map.substring(map.lastIndexOf("(") + 1,map.lastIndexOf(")"));
              b=true;
              name =  map.substring(0,map.lastIndexOf("("));
              qq.setName(name);
              qq.setQq(sun);
            }else if(map.lastIndexOf("<")>-1&&map.lastIndexOf(">")>-1){
              sun =map.substring(map.lastIndexOf("<")+1,map.lastIndexOf(">"));
              name =  map.substring(0,map.lastIndexOf("<"));
              qq.setName(name);
              qq.setQq(sun);
              b=true;
            }
            if(b){
              qq.setMark("发表:");
              qq.setCount(entity.getValue().toString());
              qms.add(qq);
            }
            continue;
          }
         }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.