org.richfaces.renderkit
Class ForEachLoop<T>
java.lang.Object
org.richfaces.renderkit.ForEachLoop<T>
- All Implemented Interfaces:
- Iterable<T>
public class ForEachLoop<T>
- extends Object
- implements Iterable<T>
Provides implementation of Iterable
object wrapping Collection
, Iterable
, array or ForEachLoop.StateAwareIterator
.
Provides the status of iteration compatible with LoopTagStatus
.
- Author:
- Lukas Fryc
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getInstance
public static <T> ForEachLoop<T> getInstance(Iterator<T> iterator)
getInstance
public static <T> ForEachLoop<T> getInstance(Iterable<T> iterable)
getInstance
public static <T> ForEachLoop<T> getInstance(T[] array)
iterator
public Iterator<T> iterator()
- Specified by:
iterator
in interface Iterable<T>
getStatus
public ForEachLoop.Status getStatus()
setBegin
public void setBegin(int begin)
setEnd
public void setEnd(int end)
setStep
public void setStep(int step)
Copyright © 2013 JBoss by Red Hat. All Rights Reserved.