Class AbstractNamespace

    • Field Detail

      • COMPARATOR

        private static final java.util.Comparator<Namespace> COMPARATOR
        Sorts namespaces first by prefix and then by Namespace.getName() () name}; null values are sorted before other values.
    • Constructor Detail

      • AbstractNamespace

        public AbstractNamespace()
    • Method Detail

      • compareTo

        public int compareTo​(Namespace o)
        Specified by:
        compareTo in interface java.lang.Comparable<Namespace>
      • equals

        public boolean equals​(java.lang.Object object)
        Description copied from interface: Namespace
        Compares this namespace to another object.
        Specified by:
        equals in interface Namespace
        Overrides:
        equals in class java.lang.Object
        Parameters:
        object - The object to compare this namespace to
        Returns:
        true if the other object is an instance of Namespace and their prefixes and names are equal, false otherwise.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object