public class ConvertingIterator<Domain,Range>
extends java.lang.Object
implements java.util.Iterator<Range>
Modifier and Type | Class and Description |
---|---|
static class |
ConvertingIterator.IdConvertor<T> |
Constructor and Description |
---|
ConvertingIterator(java.util.Iterator<? extends Domain> baseIterator,
Convertor<? super Domain,? extends Range> convertor) |
Modifier and Type | Method and Description |
---|---|
static <Domain,Intermediate,Range> |
composition(Convertor<? super Domain,? extends Intermediate> convertor1,
Convertor<? super Intermediate,? extends Range> convertor2) |
static <Domain,Range> |
create(java.util.Iterator<? extends Domain> iterator,
Convertor<? super Domain,? extends Range> convertor) |
boolean |
hasNext() |
Range |
next() |
void |
remove() |
public boolean hasNext()
hasNext
in interface java.util.Iterator<Range>
public void remove()
remove
in interface java.util.Iterator<Range>
public static <Domain,Intermediate,Range> Convertor<Domain,Range> composition(Convertor<? super Domain,? extends Intermediate> convertor1, Convertor<? super Intermediate,? extends Range> convertor2)
public static <Domain,Range> ConvertingIterator<Domain,Range> create(java.util.Iterator<? extends Domain> iterator, Convertor<? super Domain,? extends Range> convertor)