OpenOffice.org
XMerge API

org.openoffice.xmerge.merger
Interface DiffAlgorithm

All Known Implementing Classes:
IteratorLCSAlgorithm, IteratorRowCompare

public interface DiffAlgorithm

This is the difference algorithm interface. It is an interface so that different algorithms may be plugged-in to actually compute the differences. NOTE: this code may not be thread safe.


Method Summary
 Difference[] computeDiffs(Iterator orgSeq, Iterator modSeq)
          Returns a Difference array.
 

Method Detail

computeDiffs

public Difference[] computeDiffs(Iterator orgSeq,
                                 Iterator modSeq)
Returns a Difference array. This method finds out the difference between two sequences.
Parameters:
orgSeq - The original sequence of object.
modSeq - The modified (or changed) sequence to compare against with the origial.
Returns:
A Difference array.

OpenOffice.org
XMerge API

Copyright © 2002 OpenOffice.org