Class UrlComparator<T>

  • All Implemented Interfaces:
    java.util.Comparator<T>

    public abstract class UrlComparator<T>
    extends java.lang.Object
    implements java.util.Comparator<T>
    Inspired from AntPathMatcher.AntPatternComparator. Sorts from most specific to least specific.
    • Constructor Summary

      Constructors 
      Constructor Description
      UrlComparator()  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      int compare​(T o1, T o2)  
      abstract java.lang.String getUrlPattern​(T t)  
      • 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

      • UrlComparator

        public UrlComparator()
    • Method Detail

      • compare

        public int compare​(T o1,
                           T o2)
        Specified by:
        compare in interface java.util.Comparator<T>
      • getUrlPattern

        public abstract java.lang.String getUrlPattern​(T t)