Interface IStructureComparator
- All Known Implementing Classes:
BufferedResourceNode
,DocumentRangeNode
,ResourceNode
,StructureRootNode
public interface IStructureComparator
Interface used to compare hierarchical structures.
It is used by the differencing engine.
Clients typically implement this interface in an adaptor class which wrappers the objects to be compared.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns whether some other object is "equal to" this one with respect to a structural comparison.Object[]
Returns an iterator for all children of this object ornull
if there are no children.
-
Method Details
-
getChildren
Object[] getChildren()Returns an iterator for all children of this object ornull
if there are no children.- Returns:
- an array with all children of this object, or an empty array if there are no children
-
equals
Returns whether some other object is "equal to" this one with respect to a structural comparison. For example, when comparing Java class methods,equals
would returntrue
if two methods have the same signature (the argument names and the method body might differ).
-