src/share/classes/com/sun/tools/doclets/formats/html/PackageIndexWriter.java

changeset 74
5a9172b251dd
parent 1
9a66ca7c79fa
child 117
24a47c3062fe
equal deleted inserted replaced
73:1cf29847eb6e 74:5a9172b251dd
47 /** 47 /**
48 * Map representing the group of packages as specified on the command line. 48 * Map representing the group of packages as specified on the command line.
49 * 49 *
50 * @see Group 50 * @see Group
51 */ 51 */
52 private Map groupPackageMap; 52 private Map<String,List<PackageDoc>> groupPackageMap;
53 53
54 /** 54 /**
55 * List to store the order groups as specified on the command line. 55 * List to store the order groups as specified on the command line.
56 */ 56 */
57 private List groupList; 57 private List groupList;
118 * separate table indices for each package group. 118 * separate table indices for each package group.
119 */ 119 */
120 protected void generateIndex() { 120 protected void generateIndex() {
121 for (int i = 0; i < groupList.size(); i++) { 121 for (int i = 0; i < groupList.size(); i++) {
122 String groupname = (String)groupList.get(i); 122 String groupname = (String)groupList.get(i);
123 List list = (List)groupPackageMap.get(groupname); 123 List<PackageDoc> list = groupPackageMap.get(groupname);
124 if (list != null && list.size() > 0) { 124 if (list != null && list.size() > 0) {
125 printIndexContents((PackageDoc[])list. 125 printIndexContents(list.toArray(new PackageDoc[list.size()]),
126 toArray(new PackageDoc[list.size()]),
127 groupname); 126 groupname);
128 } 127 }
129 } 128 }
130 } 129 }
131 130

mercurial