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 Main.java

class MyIterable<E> implements Iterable<E> {
    private Set<E> internalSet = new HashSet<E>();

    public MyIterable(E... all) {
        for (E e : all) {
            internalSet.add(e);

From source file name.martingeisse.phunky.runtime.code.expression.AbstractCallExpression.java

/**
 * Base class for function calls, methods calls, and several special
 * syntactic forms. This base class manages the argument expressions.
 * 
 * This object also acts as an {@link Iterable} for the argument expressions.
 */

From source file org.shaman.terrain.sketch.Graph.java

/**
 * A simple graph class for undirected, weighted graphs.
 *
 * @author Sebastian Weiss
 */
public class Graph implements Iterable<Triple<Integer, Integer, Float>> {

From source file edu.umd.cs.hcil.twitterreplay.GzippedFileReader.java

/**
 *
 * @author cbuntain
 */
public class GzippedFileReader implements Iterable<String> {
    private final File mFile;

From source file uk.me.andybrown.awreflow2.ReflowProfile.java

public class ReflowProfile implements Iterable<ReflowRegion> {

    protected String _name; // the name is the unique key
    protected ReflowRegion[] _regions;

    protected double _linearMaxTemperature;

From source file org.javafunk.funk.datastructures.tuples.AbstractTuple.java

public abstract class AbstractTuple implements Iterable<Object> {
    public abstract Iterable<Object> values();

    @Override
    public String toString() {
        return format("(%s)", join(values(), ", "));

From source file hoptoad.Backtrace.java

public class Backtrace implements Iterable<String> {

    private final List<String> backtrace = new LinkedList<String>();

    private final List<String> ignoreRules = new LinkedList<String>();

From source file logicProteinHypernetwork.networkStates.MinimalNetworkState.java

/**
 * Class MinimalNetworkState models a minimal network state for a particular 
 * network entity.
 *
 * @author Johannes Kster <johannes.koester@tu-dortmund.de>
 */

From source file com.boundlessgeo.geoserver.json.JSONArr.java

/**
 * Wrapper object for {@link org.json.simple.JSONArray}.
 */
public class JSONArr extends JSONWrapper<JSONArray> implements Iterable<Object> {

    public JSONArr() {

From source file airbrake.Backtrace.java

public class Backtrace implements Iterable<String> {

    public static boolean isValidBacktrace(String string) {
        return string.matches("[^:]*:\\d+.*");
    }