|
Oracle Fusion Middleware Java API Reference for Oracle WebCenter 11g Release 1 (11.1.1.3.0) E15995-02 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
oracle.webcenter.search.util.ConverterIterator<S,T>
public abstract class ConverterIterator<S,T>
A generic utility decorator abstract base class of Iterator that allows subclasses to convert between a source iterator element type and a target iterator element type.
| Constructor Summary | |
|---|---|
protected |
ConverterIterator(java.util.Iterator<S> source)Only called by subclasses, constructs an Iterator that converts objects of type S to objects of type T. |
| Method Summary | |
|---|---|
protected abstract T |
convert(S source)Subclasses implement this method to perform the conversion from a source class S to a target class T. |
boolean |
hasNext()Wrapped implementation of the Iterator.hasNext method. |
T |
next()Wrapped implementation of the Iterator.next method. |
void |
remove()Forward the call to the underlying source iteratro |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected ConverterIterator(java.util.Iterator<S> source)
source - the source iterator of type S| Method Detail |
|---|
public boolean hasNext()
hasNext in interface java.util.Iterator<T>public T next()
next in interface java.util.Iterator<T>public void remove()
remove in interface java.util.Iterator<T>protected abstract T convert(S source)
source - a source S object that needs to be converted into a target T object
|
Oracle Fusion Middleware Java API Reference for Oracle WebCenter 11g Release 1 (11.1.1.3.0) E15995-02 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||