Class NodeComparator
java.lang.Object
ch.nolix.base.document.node.NodeComparator
- All Implemented Interfaces:
INodeComparator
- Author:
- Silvan Wyss
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanhaveEqualChildNodesConstellationLikeNodes(INode<?> node1, INode<?> node2) booleanhaveEqualHeaderConstellationLikeNode(INode<?> node1, INode<?> node2)
-
Constructor Details
-
NodeComparator
public NodeComparator()
-
-
Method Details
-
areEqual
- Specified by:
areEqualin interfaceINodeComparator- Parameters:
node1-node2-- Returns:
- true if the given node1 equals the given node2, false otherwise.
-
haveEqualChildNodesConstellationLikeNodes
- Specified by:
haveEqualChildNodesConstellationLikeNodesin interfaceINodeComparator- Parameters:
node1-node2-- Returns:
- true if the given ndoe1 and node2 have an equal child
INodes constellation, false otherwise.
-
haveEqualHeaderConstellationLikeNode
- Specified by:
haveEqualHeaderConstellationLikeNodein interfaceINodeComparator- Parameters:
node1-node2-- Returns:
- true if the given ndoe1 and node2 have an equal header constellation, false otherwise.
-