- All Implemented Interfaces:
- Comparator<Node>
- Enclosing class:
- NodeUtil
public static class NodeUtil.NodeComparatorBySingleAttribute
extends Object
implements Comparator<Node>
a simple implementation of the Comparator interface, (applied to the Node class) that uses the value of a given
node attribute as comparison criterion.
Nodes not having the required attribute (or not having attributes at all) bypass this comparator, i.e., they are considered arbitrarily different
as far as this comparator is concerned.
- Author:
- gdiaz