Package gg.jte.support
Class ForSupport<T>
- java.lang.Object
-
- gg.jte.support.ForSupport<T>
-
- All Implemented Interfaces:
java.lang.Iterable<ForSupport<T>>
public class ForSupport<T> extends java.lang.Object implements java.lang.Iterable<ForSupport<T>>
-
-
Constructor Summary
Constructors Constructor Description ForSupport(java.util.Iterator<T> iterator)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Tget()intgetIndex()booleanisFirst()booleanisLast()java.util.Iterator<ForSupport<T>>iterator()static <T> ForSupport<T>of(java.lang.Iterable<T> iterable)static <T> ForSupport<T>of(T[] array)
-
-
-
Constructor Detail
-
ForSupport
public ForSupport(java.util.Iterator<T> iterator)
-
-
Method Detail
-
of
public static <T> ForSupport<T> of(java.lang.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()
-
iterator
public java.util.Iterator<ForSupport<T>> iterator()
- Specified by:
iteratorin interfacejava.lang.Iterable<T>
-
-