Class DiffIterator<T>

java.lang.Object
gw.util.diff.sorted.DiffIterator<T>
All Implemented Interfaces:
Iterator<Diff<T>>

public class DiffIterator<T> extends Object implements Iterator<Diff<T>>
  • Field Details

    • _oldIterator

      private final Iterator<T> _oldIterator
    • _newIterator

      private final Iterator<T> _newIterator
    • _oldItem

      private T _oldItem
    • _newItem

      private T _newItem
    • _comparator

      private final Comparator<? super T> _comparator
    • _next

      private Diff<T> _next
  • Constructor Details

  • Method Details

    • hasNext

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

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

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

      private void calcNext()
    • nextOld

      private void nextOld()
    • nextNew

      private void nextNew()
    • compare

      private Integer compare()