LibreOffice Module xmerge (master)
1
|
This is an implementation of the. More...
Public Member Functions | |
ObjectArrayIterator (Object[] objArray) | |
Standard constructor. More... | |
Object | next () |
Move to next element in the sequence. More... | |
Object | previous () |
Object | start () |
Move to the beginning of the sequence. More... | |
Object | end () |
Object | currentElement () |
Return the current element. More... | |
void | replace (Object object) |
Replace current. More... | |
void | insert (Object object) |
Insert. More... | |
void | append (Object object) |
Append. More... | |
void | remove () |
Remove current. More... | |
int | elementCount () |
Return the total element count in the sequence. More... | |
boolean | equivalent (Object obj1, Object obj2) |
A method to allow the difference algorithm to test whether the. More... | |
void | refresh () |
A method to force the. More... | |
Private Attributes | |
Object[] | objArray |
The. More... | |
int | currentPosition |
This is an implementation of the.
interface.
It is based upon a simple
array.
Note: this class is not thread safe for performance reasons.
Definition at line 30 of file ObjectArrayIterator.java.
|
inline |
Standard constructor.
objArray | The array. |
Definition at line 41 of file ObjectArrayIterator.java.
|
inline |
|
inline |
Return the current element.
content.
Implements org.openoffice.xmerge.merger.Iterator.
Definition at line 81 of file ObjectArrayIterator.java.
References org.openoffice.xmerge.merger.diff.ObjectArrayIterator.currentPosition, and Object.
Referenced by org.openoffice.xmerge.merger.diff.ObjectArrayIterator.end(), org.openoffice.xmerge.merger.diff.ObjectArrayIterator.next(), org.openoffice.xmerge.merger.diff.ObjectArrayIterator.previous(), and org.openoffice.xmerge.merger.diff.ObjectArrayIterator.start().
|
inline |
Return the total element count in the sequence.
Implements org.openoffice.xmerge.merger.Iterator.
Definition at line 168 of file ObjectArrayIterator.java.
|
inline |
Definition at line 74 of file ObjectArrayIterator.java.
References org.openoffice.xmerge.merger.diff.ObjectArrayIterator.currentElement(), and Object.
|
inline |
A method to allow the difference algorithm to test whether the.
and
in the
are considered equal.
As not every
in the
can implement its own equal method, with this equivalent method, we can allow flexibility for the
to choose a custom way to compare two objects. Two objects can even be compared based on the position in the
rather than by the content via this option.
obj1 | The first |
obj2 | The second . |
Implements org.openoffice.xmerge.merger.Iterator.
Definition at line 172 of file ObjectArrayIterator.java.
|
inline |
Insert.
after current
.
object |
Definition at line 103 of file ObjectArrayIterator.java.
References org.openoffice.xmerge.merger.diff.ObjectArrayIterator.currentPosition, Object, and System.
|
inline |
Move to next element in the sequence.
Implements org.openoffice.xmerge.merger.Iterator.
Definition at line 51 of file ObjectArrayIterator.java.
References org.openoffice.xmerge.merger.diff.ObjectArrayIterator.currentElement(), and Object.
|
inline |
Definition at line 60 of file ObjectArrayIterator.java.
References org.openoffice.xmerge.merger.diff.ObjectArrayIterator.currentElement(), and Object.
|
inline |
A method to force the.
to traverse the tree again to refresh the content.
It is used mainly for
objects which take a snapshot instead of dynamically traversing the tree. The current position will be set to the beginning.
Implements org.openoffice.xmerge.merger.Iterator.
Definition at line 176 of file ObjectArrayIterator.java.
|
inline |
|
inline |
Replace current.
.
object |
Definition at line 94 of file ObjectArrayIterator.java.
References org.openoffice.xmerge.merger.diff.ObjectArrayIterator.currentPosition.
|
inline |
Move to the beginning of the sequence.
Implements org.openoffice.xmerge.merger.Iterator.
Definition at line 69 of file ObjectArrayIterator.java.
References org.openoffice.xmerge.merger.diff.ObjectArrayIterator.currentElement(), and Object.
|
private |
|
private |