Class ResourceBuilder.NamespaceComparator

  • All Implemented Interfaces:
    java.util.Comparator<java.lang.String>
    Enclosing class:
    ResourceBuilder

    private static class ResourceBuilder.NamespaceComparator
    extends java.lang.Object
    implements java.util.Comparator<java.lang.String>
    We order the wiring namespaces ahead of the other namespaces. This makes the resolver happier in some tests which otherwise fail when using simple namespace ordering.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private NamespaceComparator()  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int compare​(java.lang.String left, java.lang.String right)  
      private static java.lang.String map​(java.lang.String namespace)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.Comparator

        equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
    • Constructor Detail

      • NamespaceComparator

        private NamespaceComparator()
    • Method Detail

      • compare

        public int compare​(java.lang.String left,
                           java.lang.String right)
        Specified by:
        compare in interface java.util.Comparator<java.lang.String>
      • map

        private static java.lang.String map​(java.lang.String namespace)