KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > icl > saxon > sort > NodeOrderComparer


1 package com.icl.saxon.sort;
2 import com.icl.saxon.om.NodeInfo;
3
4 /**
5  * A Comparer used for comparing nodes in document order
6  *
7  * @author Michael H. Kay (mhkay@iclway.co.uk)
8  *
9  */

10
11 public interface NodeOrderComparer {
12
13     /**
14     * Compare two objects.
15     * @return <0 if a<b, 0 if a=b, >0 if a>b
16     */

17
18     public int compare(NodeInfo a, NodeInfo b);
19
20 }
21
Popular Tags