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

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

Introduction

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

Prototype

public IteratorChain() 

Source Link

Document

Construct an IteratorChain with no Iterators.

Usage

From source file:modalLogic.tableau.Branch.java

/**
 * Returns an iterator over all clashes in the branch.
 *
 * @return the iterator/*  w  ww . j  a  v  a  2 s . c o  m*/
 */
public Iterator<Pair<LabelledFormula<P>>> clashes() {
    IteratorChain<Pair<LabelledFormula<P>>> ites = new IteratorChain<Pair<LabelledFormula<P>>>();
    for (World<P> w : tableau.getWorlds()) {
        if (w.isClashing())
            ites.addIterator(w.clashes());
    }
    return ites;
}