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

class ReverseIterating<T> implements Iterable<T> {
    private final LinkedList<T> list;

    public ReverseIterating(LinkedList<T> list) {
        this.list = list;
    }

From source file IteratorIterable.java

/**
 * Adapt iterator to iterable 
 * 
 * @author Hong Hong
 *
 * @param Iterator type

From source file IterableString.java

class IterableString implements Iterable<Character>, Iterator<Character> {
    private String str;
    private int count = 0;

    IterableString(String s) {
        str = s;

From source file IterableString.java

class IterableString implements Iterable<Character>, Iterator<Character> {
    private String str;

    private int count = 0;

    public IterableString(String s) {

From source file IterableString.java

class IterableString implements Iterable<Character>, Iterator<Character> {
    private String str;

    private int count = 0;

    public IterableString(String s) {

From source file Range.java

/**
 * Integer Sequence Generator
 * 
 * @author Hong Hong
 *
 */

From source file net.sourceforge.pmd.lang.java.ast.ASTSwitchStatement.java

/**
 * Represents a {@code switch} statement.
 *
 * <pre>
 *    SwitchStatement ::= "switch" "(" {@linkplain ASTExpression Expression} ")" "{"
 *                        ( {@linkplain ASTSwitchLabel SwitchLabel} {@linkplain ASTBlockStatement BlockStatement}* )*

From source file Main.java

class DateIterator implements Iterator<Date>, Iterable<Date> {

    private Calendar end = Calendar.getInstance();
    private Calendar current = Calendar.getInstance();

    public DateIterator(Date start, Date end) {

From source file org.mule.module.fws.api.PaginatedIterable.java

public abstract class PaginatedIterable<T, Page> implements Iterable<T> {
    public Iterator<T> iterator() {
        final Page initialPageInfo = firstPage();
        return new Iterator<T>() {
            private Page currentList = initialPageInfo;
            private Iterator<T> currentIter = pageIterator(initialPageInfo);

From source file logicProteinHypernetwork.networkStates.NetworkState.java

/**
 * A network state is a collection of minimal network states.
 * Provides an interator over all necessary network entities in these.
 *
 * @author Johannes Kster <johannes.koester@tu-dortmund.de>
 */