org.apache.ode.utils.stl

## Class TransformIterator<E,V>

- java.lang.Object
- - org.apache.ode.utils.stl.TransformIterator<E,V>

- All Implemented Interfaces:
    java.util.Iterator<V>

      public class TransformIterator<E,V>
      extends java.lang.Object
      implements java.util.Iterator<V>

  Transforming `Iterator` implementation; these iterators apply a unary function to each object before it is returned.

  Created on Feb 4, 2004 at 4:48:14 PM.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `TransformIterator(java.util.Iterator<E> i, UnaryFunction<E,V> txForm)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `hasNext()` DOCUMENTME
    `V` | `next()` DOCUMENTME
    `void` | `remove()` DOCUMENTME

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### TransformIterator

          public TransformIterator(java.util.Iterator<E> i,
                           UnaryFunction<E,V> txForm)

  - ### Method Detail

    - #### hasNext

          public boolean hasNext()

      DOCUMENTME
      Specified by:
        `hasNext` in interface `java.util.Iterator<V>`
      Returns:
        DOCUMENTME

    - #### next

          public V next()

      DOCUMENTME
      Specified by:
        `next` in interface `java.util.Iterator<V>`
      Returns:
        DOCUMENTME

    - #### remove

          public void remove()

      DOCUMENTME
      Specified by:
        `remove` in interface `java.util.Iterator<V>`