Class ConvertingIterator<T,U,I extends Iterator<U>>

java.lang.Object
org.aksw.commons.collections.ConvertingIterator<T,U,I>
All Implemented Interfaces:
Iterator<T>
Direct Known Subclasses:
ConvertingListIterator

public class ConvertingIterator<T,U,I extends Iterator<U>> extends Object implements Iterator<T>
  • Field Details

    • core

      protected I extends Iterator<U> core
    • converter

      protected com.google.common.base.Converter<U,T> converter
  • Constructor Details

    • ConvertingIterator

      public ConvertingIterator(I core, com.google.common.base.Converter<U,T> converter)
  • Method Details

    • next

      public T next()
      Specified by:
      next in interface Iterator<T>
    • hasNext

      public boolean hasNext()
      Specified by:
      hasNext in interface Iterator<T>
    • remove

      public void remove()
      Specified by:
      remove in interface Iterator<T>