org.jjoost.collections.iters
Class RepeatIterable<E>

java.lang.Object
  extended by org.jjoost.collections.iters.RepeatIterable<E>
All Implemented Interfaces:
java.lang.Iterable<E>

public class RepeatIterable<E>
extends java.lang.Object
implements java.lang.Iterable<E>


Field Summary
 int count
           
 E repeat
           
 
Constructor Summary
RepeatIterable(E repeat, int count)
           
 
Method Summary
 java.util.Iterator<E> iterator()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

repeat

public final E repeat

count

public final int count
Constructor Detail

RepeatIterable

public RepeatIterable(E repeat,
                      int count)
Method Detail

iterator

public java.util.Iterator<E> iterator()
Specified by:
iterator in interface java.lang.Iterable<E>