Package org.jusecase.jte.support
Class ForSupport<T>
- java.lang.Object
-
- org.jusecase.jte.support.ForSupport<T>
-
- All Implemented Interfaces:
Iterable<ForSupport<T>>
public class ForSupport<T> extends Object implements Iterable<ForSupport<T>>
-
-
Constructor Summary
Constructors Constructor Description ForSupport(Iterator<T> iterator)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Tget()intgetIndex()booleanisFirst()booleanisLast()Iterator<ForSupport<T>>iterator()static <T> ForSupport<T>of(Iterable<T> iterable)static <T> ForSupport<T>of(T[] array)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Method Detail
-
of
public static <T> ForSupport<T> of(Iterable<T> iterable)
-
of
public static <T> ForSupport<T> of(T[] array)
-
isLast
public boolean isLast()
-
isFirst
public boolean isFirst()
-
getIndex
public int getIndex()
-
get
public T get()
-
-