Class UrlStringComparator<T>

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

    public abstract class UrlStringComparator<T>
    extends java.lang.Object
    implements java.util.Comparator<T>
    Works in tandem with UrlComparator. Sorts alphabetically url string by "grouping" it but does not disturb the sorted order of UrlComparator Created by ArjunSahasranam on 23/11/15.
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      int compare​(T s1, T s2)  
      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

      • UrlStringComparator

        public UrlStringComparator()
    • Method Detail

      • compare

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

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