public ReportHeaderGroup getReportHeaderGroup(int col)
    {
        /* no report header groups? */
        if (ListTools.isEmpty(this.rptHdrGrps)) {
            return null;
        }
        /* search for column */
        for (ReportHeaderGroup rhg : this.rptHdrGrps) {
            int C = rhg.getColIndex();
            if (col == C) {
                return rhg;
            }
            // TODO: optimize
        }
        /* not found */
        return null;
    }
public ReportHeaderGroup getReportHeaderGroup(int col)
    {
       
        if (ListTools.isEmpty(this.rptHdrGrps)) {
            return null;
        }
       
        for (ReportHeaderGroup rhg : this.rptHdrGrps) {
            int C = rhg.getColIndex();
            if (col == C) {
                return rhg;
            }
           
        }
       
        return null;
    }
public reportheadergroup getreportheadergroup(int col) { if (listtools.isempty(this.rpthdrgrps)) { return null; } for (reportheadergroup rhg : this.rpthdrgrps) { int c = rhg.getcolindex(); if (col == c) { return rhg; } } return null; }