类 DefaultResourceComparator

  • 所有已实现的接口:
    java.util.Comparator<org.springframework.core.io.Resource>

    public class DefaultResourceComparator
    extends java.lang.Object
    implements java.util.Comparator<org.springframework.core.io.Resource>
    The default Comparator for Resource comparing Resource.getFilename()
    从以下版本开始:
    1.0.0
    作者:
    Mercy
    另请参阅:
    ResourcePropertySource.resourceComparator()
    • 方法概要

      所有方法 实例方法 具体方法 
      修饰符和类型 方法 说明
      int compare​(org.springframework.core.io.Resource r1, org.springframework.core.io.Resource r2)  
      • 从类继承的方法 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • 从接口继承的方法 java.util.Comparator

        equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
    • 构造器详细资料

      • DefaultResourceComparator

        public DefaultResourceComparator()
    • 方法详细资料

      • compare

        public int compare​(org.springframework.core.io.Resource r1,
                           org.springframework.core.io.Resource r2)
        指定者:
        compare 在接口中 java.util.Comparator<org.springframework.core.io.Resource>