Tsrc
- Type of the original IterableTdst
- Type of the indirect gotten instancepublic abstract class IterableIndirect<Tsrc,Tdst>
extends java.lang.Object
implements java.util.Iterator<Tdst>, java.lang.Iterable<Tdst>
Iterable
.
The implementor have to override the conv(Object)
which converts from the
original elements of the iterable to the return instance.Modifier and Type | Field and Description |
---|---|
(package private) boolean |
bExecHasNext |
(package private) java.util.Iterator<Tsrc> |
iterSrc |
(package private) int |
ix |
Constructor and Description |
---|
IterableIndirect(java.lang.Iterable<Tsrc> iterSrc)
Constructs with the given Iterable
|
Modifier and Type | Method and Description |
---|---|
abstract Tdst |
conv(Tsrc src)
Converts with given element to the expected result element.
|
boolean |
hasNext() |
java.util.Iterator<Tdst> |
iterator() |
Tdst |
next() |
int ix
final java.util.Iterator<Tsrc> iterSrc
boolean bExecHasNext
public IterableIndirect(java.lang.Iterable<Tsrc> iterSrc)
iterSrc
-