protected void addContents(Character uc, List<? extends Doc> memberlist,
            Content contentTree) {
        String unicode = uc.toString();
        contentTree.addContent(getMarkerAnchorForIndex(unicode));
        Content headContent = new StringContent(unicode);
        Content heading = HtmlTree.HEADING(HtmlConstants.CONTENT_HEADING, false,
                HtmlStyle.title, headContent);
        contentTree.addContent(heading);
        int memberListSize = memberlist.size();
        // Display the list only if there are elements to be displayed.
        if (memberListSize > 0) {
            Content dl = new HtmlTree(HtmlTag.DL);
            for (int i = 0; i < memberListSize; i++) {
                Doc element = memberlist.get(i);
                if (element instanceof MemberDoc) {
                    addDescription((MemberDoc)element, dl);
                } else if (element instanceof ClassDoc) {
                    addDescription((ClassDoc)element, dl);
                } else if (element instanceof PackageDoc) {
                    addDescription((PackageDoc)element, dl);
                }
            }
            contentTree.addContent(dl);
        }
    }
protected void addContents ( Character uc , List < ? extends Doc > memberlist , Content contentTree ) { String unicode = uc . toString ( ) ; contentTree . addContent ( getMarkerAnchorForIndex ( unicode ) ) ; Content headContent = new StringContent ( unicode ) ; Content heading = HtmlTree . HEADING ( HtmlConstants . CONTENT_HEADING , false , HtmlStyle . title , headContent ) ; contentTree . addContent ( heading ) ; int memberListSize = memberlist . size ( ) ; if ( memberListSize > 0 ) { Content dl = new HtmlTree ( HtmlTag . DL ) ; for ( int i = 0 ; i < memberListSize ; i ++ ) { Doc element = memberlist . get ( i ) ; if ( element instanceof MemberDoc ) { addDescription ( ( MemberDoc ) element , dl ) ; } else if ( element instanceof ClassDoc ) { addDescription ( ( ClassDoc ) element , dl ) ; } else if ( element instanceof PackageDoc ) { addDescription ( ( PackageDoc ) element , dl ) ; } } contentTree . addContent ( dl ) ; } }
Add the member information for the unicode character along with the
list of the members.

@param unicode Unicode for which member list information to be generated
@param memberlist List of members for the unicode character
@param contentTree the content tree to which the information will be added