Java Iterable iterable(final Iterable in)

Here you can find the source of iterable(final Iterable in)

Description

iterable

License

Apache License

Declaration

protected static <T> Iterable<T> iterable(final Iterable<T> in) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import java.util.Iterator;

public class Main {
    protected static <T> Iterable<T> iterable(final Iterable<T> in) {
        return new Iterable<T>() {
            @Override/*ww w.ja va  2  s .  c o m*/
            public Iterator<T> iterator() {
                return in.iterator();
            }
        };
    }
}

Related

  1. implodeStrings(Iterable strings, String glue)
  2. indexOfSame(Iterable iterable, T obj)
  3. internalSeparate(StringBuilder buff, Iterable args, String separator, String useWhenNone)
  4. isEmpty(Iterable iterable)
  5. isEmpty(Iterable i)
  6. max(Iterable iterable)
  7. mergeConsecutiveTokens(Iterable tokens)
  8. prettyPrintComma(Iterable a)
  9. removeElement(final Iterable iterable, int index)