@Override public ElementInfo getModifiableInstance() { if (!isFrozen()) { return this; } else { Statics statics = ci.getStatics(); return statics.getModifiable(objRef); } }
public static ArrayList<Entry<String, Integer>> countByTitle() throws ClientHandlerException, UniformInterfaceException, JSONException { Set<String> titleArray = Statics.getAllTitle(); Iterator<String> itTitle = titleArray.iterator(); String title = new String(); Map<String, Integer> orderTitle = new HashMap<String, Integer>(); while (itTitle.hasNext()) { title = itTitle.next(); Map<String, String> userStatistics = Statics.getUserList(title); String userNumber = userStatistics.get("userNumber"); Integer userNum = Integer.parseInt(userNumber); orderTitle.put(title, userNum); } ArrayList<Entry<String, Integer>> l = order(orderTitle); return l; }
public static ArrayList<Entry<String, Integer>> countByVandalism() throws ClientHandlerException, UniformInterfaceException, JSONException, URISyntaxException { Set<String> titleArray = Statics.getAllTitle(); Iterator<String> itTitle = titleArray.iterator(); String title = new String(); Map<String, Integer> orderVandalism = new HashMap<String, Integer>(); while (itTitle.hasNext()) { title = itTitle.next(); Map<String, String> vandalismAndCount = GenerateTxt.showVandalismTxt("title", title); String vandalismNumber = vandalismAndCount.get("count"); Integer vandalismCountNumber = Integer.parseInt(vandalismNumber); if (vandalismCountNumber != 0) { orderVandalism.put(title, vandalismCountNumber); } } ArrayList<Entry<String, Integer>> l = order(orderVandalism); return l; }
public static Map<String, String> getUserListByTitle(String title) throws ClientHandlerException, UniformInterfaceException, JSONException { Map<String, String> userStatistics = Statics.getUserList(title); return userStatistics; }
public static String getTheNumberOfRevision() { return Statics.getNumberOfRevision(); }
public static String countTitle() { String countTitle = Statics.listTitleOrGetNumber("count"); return countTitle; }
public static List<Object[]> listTitle() { List<Object[]> title = Statics.listAllTitle(); return title; }