Example usage for java.lang Iterable interface-usage

List of usage examples for java.lang Iterable interface-usage

Introduction

In this page you can find the example usage for java.lang Iterable interface-usage.

Usage

From source file org.codehaus.httpcache4j.Directives.java

/**
 * @author <a href="mailto:hamnis@codehaus.org">Erlend Hamnaberg</a>
 * @version $Revision: $
 */
public class Directives implements Iterable<Directive>, Serializable {
    private final Map<String, Directive> directives;

From source file uk.co.caprica.rottentomatoes.domain.MovieSearchResults.java

/**
 *
 */
public final class MovieSearchResults implements Iterable<MovieSearchResult> {

    private Integer total;

From source file org.apache.oodt.cas.cli.util.CmdLineIterable.java

/**
 * An {@link Iterable} which allows multiple concurrent iterators which affect
 * each other, also allows you to increment iterators index manually. All
 * iterators handle termination safely. However, the catch being that you can
 * only iterate through this {@link Iterable} once, then you must create a new
 * object of it to iterate over it again.

From source file com.insightml.utils.types.collections.PairList.java

public final class PairList<F, S> extends AbstractClass implements Iterable<Pair<F, S>>, Serializable {

    private static final long serialVersionUID = 7289587127664569567L;

    private final LinkedList<Pair<F, S>> list = new LinkedList<>();
    private final boolean allowDuplicateKeys;

From source file com.github.steveash.jg2p.util.CartesianProductIterable.java

/**
 * Iterable that returns the cartesian product of another iterable but only the _unique_ pairs and no self-pairs
 * (although it would be simple to support either of those cases) <p> Thus, given an iterable that returns A, B, C, D
 * Then this will return A-B, A-C, A-D, B-C, B-D, C-D <p> Nothing is cached, so the source iterable of size N will be
 * traversed N times
 *

From source file org.bireme.interop.toJson.ToJson.java

/**
 *
 * @author Heitor Barbieri
 * date 20140807
 */
public abstract class ToJson implements Iterable<JSONObject>, Iterator<JSONObject> {

From source file ch.ralscha.extdirectspring.util.MethodInfoCache.java

import org.springframework.core.annotation.AnnotationUtils;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Controller;

import eap.util.ReflectUtil;
import eap.util.StringUtil;

From source file de.tudarmstadt.ukp.dkpro.core.ngrams.util.NGramStringIterable.java

/**
 * Creates a NGram iterable from a list of tokens.
 * It does not detect any sentence boundaries.
 * Thus, one should make sure to only add lists that reflect a sentence or a phrase.
 * 
 * @author zesch

From source file org.apache.tajo.engine.planner.global.ParallelExecutionQueue.java

public class ParallelExecutionQueue implements ExecutionQueue, Iterable<ExecutionBlock> {

    private static final Log LOG = LogFactory.getLog(ParallelExecutionQueue.class);

    private final int maximum;
    private final MasterPlan masterPlan;

From source file uk.ac.ebi.spot.rdf.model.AssayGroups.java

public class AssayGroups implements Iterable<AssayGroup> {

    private Map<String, AssayGroup> assayGroupsById;

    public AssayGroups(Collection<AssayGroup> assayGroups) {
        this.assayGroupsById = Maps.newHashMap();