Java Iterator from getFirstChildrendIterator(List children)

Here you can find the source of getFirstChildrendIterator(List children)

Description

Return an iterator to the first children of a list

License

Open Source License

Parameter

Parameter Description
children the list of chldren

Return

an iterator to the first children, or null if the reference to the list is null

Declaration

private static Iterator getFirstChildrendIterator(List children) 

Method Source Code

//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;
    }
}

Related

  1. getAt(Iterator it, int pos)
  2. getCommaSeparatedValue(Iterator it)
  3. getDestinationType(ImageReadParam param, Iterator imageTypes)
  4. getEmptyIterator()
  5. getEnumeratedObjectCount(Iterator objects)
  6. getIndexInIterator(Iterator iterator, int index)
  7. getIterable(final Iterator i)
  8. getIterator(final int[] p, final Object[] data)
  9. getIterator(final Object o, final Class classElement)