private void consume() { pending = null; while (!itlist.isEmpty()) { ComponentIterator it = (ComponentIterator) itlist.get(itlist.size() - 1); if (it.hasMoreComponents()) { pending = it.nextComponent(); break; } itlist.remove(itlist.size() - 1); } }
private void consume() { pending = null; while (!itlist.isEmpty()) { ComponentIterator it = (ComponentIterator) itlist.get(itlist.size() - 1); if (it.hasMoreComponents()) { pending = it.nextComponent(); break; } itlist.remove(itlist.size() - 1); } }