迭代器的使用

Enumeration<ExecutionGroupProxy> allExGroInThisBro = bro
                        .getExecutionGroups(null);
                if (allExGroInThisBro.hasMoreElements())
                {
                    while (allExGroInThisBro.hasMoreElements())
                    {

                        ExecutionGroupProxy thisEg = allExGroInThisBro
                                .nextElement();
                        listExgs.add(thisEg);
                        logger.debug("hold the [" + thisEg.getName()
                                + "] increase to ListExgs array");
                    }
                }

你可能感兴趣的:(迭代器)