</BUG>
return RSet.groupJOListByStrAndJA(rs.getJOofJOStream("pages"), "title", "links", "title");
}
public static HashMap<String, ArrayList<String>> linksHere(Wiki wiki, boolean redirects, ArrayList<String> titles)
{
<BUG>RSet rs = new SQ(wiki, "lhlimit",
</BUG>
FL.pMap("prop", "linkshere", "lhprop", "title", "lhshow", redirects ? "redirect" : "!redirect")).multiTitleQuery("titles",
titles);
return RSet.groupJOListByStrAndJA(rs.getJOofJOStream("pages"), "title", "linkshere", "title");

public static HashMap<String, ArrayList<String>> getLinksOnPage(Wiki wiki, NS[] ns, ArrayList<String> titles)
{
HashMap<String, String> pl = FL.pMap("prop", "links");
if (ns != null && ns.length > 0)
pl.put("plnamespace", wiki.nsl.createFilter(ns));
RSet rs = SQ.with(wiki, "pllimit", pl).multiTitleQuery("titles", titles);
return RSet.groupJOListByStrAndJA(rs.getJOofJOStream("pages"), "title", "links", "title");
}
public static HashMap<String, ArrayList<String>> linksHere(Wiki wiki, boolean redirects, ArrayList<String> titles)
{
RSet rs = SQ.with(wiki, "lhlimit",
FL.pMap("prop", "linkshere", "lhprop", "title", "lhshow", redirects ? "redirect" : "!redirect")).multiTitleQuery("titles",
titles);
return RSet.groupJOListByStrAndJA(rs.getJOofJOStream("pages"), "title", "linkshere", "title");
