Class ListChangeIterator<L1,L2,E>

java.lang.Object
org.exoplatform.portal.tree.diff.ListChangeIterator<L1,L2,E>
All Implemented Interfaces:
Iterator<ListChangeType>

public class ListChangeIterator<L1,L2,E> extends Object implements Iterator<ListChangeType>
Iterates over a list of ListChangeType computed from two list of objects. The implementation is optimized to use the LCS algorithm only when needed, for trivial list no LCS computation should be required.
Author:
Julien Viet
  • Method Details

    • hasNext

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

      public ListChangeType next()
      Specified by:
      next in interface Iterator<L1>
    • remove

      public void remove()
      Specified by:
      remove in interface Iterator<L1>
    • getElement

      public E getElement()
    • getIndex1

      public int getIndex1()
    • getIndex2

      public int getIndex2()