Class FileUtil.TmFileComparator

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

    public static class FileUtil.TmFileComparator
    extends java.lang.Object
    implements java.util.Comparator<java.lang.String>
    Comparator to sort the tm/ folder alphabetically, but always put tm/enforce and tm/auto results before other similar % matches.
    • Constructor Summary

      Constructors 
      Constructor Description
      TmFileComparator​(java.io.File tmRoot)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int compare​(java.lang.String n1, java.lang.String n2)  
      • Methods inherited from class java.lang.Object

        equals, 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

      • TmFileComparator

        public TmFileComparator​(java.io.File tmRoot)
    • Method Detail

      • compare

        public int compare​(java.lang.String n1,
                           java.lang.String n2)
        Specified by:
        compare in interface java.util.Comparator<java.lang.String>