Class GlobalOrderComparer

  • All Implemented Interfaces:
    java.io.Serializable, NodeOrderComparer

    public final class GlobalOrderComparer
    extends java.lang.Object
    implements NodeOrderComparer, java.io.Serializable
    A Comparer used for comparing nodes in document order. This comparer is used when there is no guarantee that the nodes being compared come from the same document
    Author:
    Michael H. Kay
    See Also:
    Serialized Form
    • Constructor Detail

      • GlobalOrderComparer

        public GlobalOrderComparer()
    • Method Detail

      • getInstance

        public static GlobalOrderComparer getInstance()
        Get an instance of a GlobalOrderComparer. The class maintains no state so this returns the same instance every time.