Class FileInfoPropsComparator

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

    public class FileInfoPropsComparator
    extends java.lang.Object
    implements java.util.Comparator<FileInfo>
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String IS_FOLDER  
    • Constructor Summary

      Constructors 
      Constructor Description
      FileInfoPropsComparator​(java.util.List<org.alfresco.util.Pair<org.alfresco.service.namespace.QName,​java.lang.Boolean>> sortProps)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int compare​(FileInfo n1, FileInfo n2)  
      • 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

      • FileInfoPropsComparator

        public FileInfoPropsComparator​(java.util.List<org.alfresco.util.Pair<org.alfresco.service.namespace.QName,​java.lang.Boolean>> sortProps)
    • Method Detail

      • compare

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