19package org.openoffice.xmerge.merger.diff;
47 this.objArray =
new Object[0];
134 objArray2[newPosition] = object;
139 newPosition + 1,
objArray.length - newPosition);
148 public void remove() {
173 return obj1.equals(obj2);
This is an implementation of the Iterator interface.
Object start()
Move to the beginning of the sequence.
ObjectArrayIterator(Object[] objArray)
Standard constructor.
boolean equivalent(Object obj1, Object obj2)
A method to allow the difference algorithm to test whether the obj1 and obj2 in the Iterator are cons...
Object next()
Move to next element in the sequence.
Object currentElement()
Return the current element Object content.
void insert(Object object)
Insert Object after current Object.
void append(Object object)
Append Object after current Object.
Object[] objArray
The Object array.
void replace(Object object)
Replace current Object.
int elementCount()
Return the total element count in the sequence.
void refresh()
A method to force the Iterator to traverse the tree again to refresh the content.
This is an interface used by the DiffAlgorithm and MergeAlgorithm to access a Document.
The DiffAlgorithm and MergeAlgorithm are used to provide the merge capabilities of this project.
Provides interfaces for converting between two Document formats, and supports a "merge" interface for...