Class Iterators.Adapter<T,U>

java.lang.Object
com.sun.xml.xsom.impl.scd.Iterators.ReadOnly<T>
com.sun.xml.xsom.impl.scd.Iterators.Adapter<T,U>
All Implemented Interfaces:
Iterator<T>
Enclosing class:
Iterators

public abstract static class Iterators.Adapter<T,U> extends Iterators.ReadOnly<T>
Iterator that wraps another Iterator and changes its type.
  • Field Details

    • core

      private final Iterator<? extends U> core
  • Constructor Details

    • Adapter

      public Adapter(Iterator<? extends U> core)
  • Method Details

    • hasNext

      public boolean hasNext()
    • next

      public T next()
    • filter

      protected abstract T filter(U u)