Class SubtypeIterator<T,U extends T>

java.lang.Object
org.jvnet.hudson.annotation_indexer.SubtypeIterator<T,U>
All Implemented Interfaces:
Iterator<U>

final class SubtypeIterator<T,U extends T> extends Object implements Iterator<U>
  • Field Details

    • core

      private final Iterator<? extends T> core
    • type

      private final Class<U extends T> type
    • next

      private T next
    • fetched

      private boolean fetched
  • Constructor Details

    • SubtypeIterator

      SubtypeIterator(Iterator<? extends T> core, Class<U> type)
  • Method Details

    • fetch

      private void fetch()
    • hasNext

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

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

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