Here you can find the source of getFirstChildrendIterator(List children)
Parameter | Description |
---|---|
children | the list of chldren |
private static Iterator getFirstChildrendIterator(List children)
//package com.java2s; /******************************************************************************* * Copyright (C) 2005 - 2014 TIBCO Software Inc. All rights reserved. * http://www.jaspersoft.com.// w ww . j ava 2 s .c om * * Unless you have purchased a commercial license agreement from Jaspersoft, * the following license terms apply: * * This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html ******************************************************************************/ import java.util.Iterator; import java.util.List; public class Main { /** * Return an iterator to the first children of a list * @param children the list of chldren * @return an iterator to the first children, or null if the reference to the list is null */ private static Iterator getFirstChildrendIterator(List children) { if (children != null) return children.iterator(); return null; } }