T - the type parameterpublic abstract class Loop<T> extends Object
| Constructor and Description |
|---|
Loop() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
int |
hashCode() |
abstract int |
index()
Index int.
|
abstract boolean |
isFirst()
Is first.
|
abstract boolean |
isLast()
Is last.
|
abstract boolean |
isRemoved()
Is removed.
|
static Iterable<Loop<Character>> |
over(CharSequence text)
Over iterable.
|
static <E> Iterable<Loop<E>> |
over(Iterable<? extends E> source)
Over iterable.
|
static <E> Iterable<Loop<E>> |
over(Iterator<? extends E> sourceIterator)
Over iterable.
|
static Iterable<Loop<Boolean>> |
overArray(boolean... sourceArray)
Over array.
|
static Iterable<Loop<Byte>> |
overArray(byte... sourceArray)
Over array.
|
static Iterable<Loop<Character>> |
overArray(char... sourceArray)
Over array.
|
static <E> Iterable<Loop<E>> |
overArray(E... sourceArray)
Over array.
|
static Iterable<Loop<Integer>> |
overArray(int... sourceArray)
Over array.
|
static Iterable<Loop<Long>> |
overArray(long... sourceArray)
Over array.
|
static Iterable<Loop<Short>> |
overArray(short... sourceArray)
Over array.
|
static Iterable<Loop<Integer>> |
overRange(int minIncl,
int maxExcl)
Over range.
|
abstract void |
remove()
Remove void.
|
abstract void |
replace(T newValue)
Replace void.
|
abstract void |
stopIteration()
Stop iteration.
|
abstract T |
value()
Value t.
|
public abstract T value()
public abstract int index()
public abstract boolean isFirst()
public abstract boolean isLast()
public abstract boolean isRemoved()
public abstract void remove()
public abstract void replace(T newValue)
newValue - the new valuepublic abstract void stopIteration()
public static <E> Iterable<Loop<E>> over(Iterable<? extends E> source)
E - the type parametersource - the sourcepublic static <E> Iterable<Loop<E>> over(Iterator<? extends E> sourceIterator)
E - the type parametersourceIterator - the source iteratorpublic static <E> Iterable<Loop<E>> overArray(E... sourceArray)
E - the type parametersourceArray - the source arraypublic static Iterable<Loop<Integer>> overArray(int... sourceArray)
sourceArray - the source arraypublic static Iterable<Loop<Long>> overArray(long... sourceArray)
sourceArray - the source arraypublic static Iterable<Loop<Short>> overArray(short... sourceArray)
sourceArray - the source arraypublic static Iterable<Loop<Byte>> overArray(byte... sourceArray)
sourceArray - the source arraypublic static Iterable<Loop<Character>> overArray(char... sourceArray)
sourceArray - the source arraypublic static Iterable<Loop<Boolean>> overArray(boolean... sourceArray)
sourceArray - the source arraypublic static Iterable<Loop<Character>> over(CharSequence text)
text - the textpublic static Iterable<Loop<Integer>> overRange(int minIncl, int maxExcl)
minIncl - the min inclmaxExcl - the max exclCopyright © 2014 Boleslav Bobcik - Auderis. All rights reserved.