Example usage for org.apache.commons.collections.iterators IteratorChain IteratorChain

List of usage examples for org.apache.commons.collections.iterators IteratorChain IteratorChain

Introduction

In this page you can find the example usage for org.apache.commons.collections.iterators IteratorChain IteratorChain.

Prototype

public IteratorChain(Collection iterators) 

Source Link

Document

Constructs a new IteratorChain over the collection of iterators.

Usage

From source file:org.richfaces.component.UIScrollableDataTable.java

@SuppressWarnings("unchecked")
protected Iterator<UIComponent> fixedChildren() {
    IteratorChain chain = new IteratorChain(getFacets().values().iterator());
    //RF-1248 Adding facets to both dataChildren and fixed children
    //To make both supports and header/footer work
    for (Iterator<UIComponent> i = getChildren().iterator(); i.hasNext();) {
        UIComponent kid = (UIComponent) i.next();
        if (kid instanceof Column || kid instanceof UIColumn) {
            chain.addIterator(kid.getFacets().values().iterator());
        }/* ww  w.  j ava 2s  .c  om*/
    }

    return chain;
}

From source file:org.talend.dataquality.matchmerge.Attribute.java

public Iterator<String> allValues() {
    return new IteratorChain(new Iterator[] { Collections.singleton(value).iterator(), values.iterator() });
}