Package io.wcm.sling.commons.resource
Class NameResourceComparator
- java.lang.Object
-
- io.wcm.sling.commons.resource.NameResourceComparator
-
- All Implemented Interfaces:
Serializable,Comparator<org.apache.sling.api.resource.Resource>
@ProviderType public final class NameResourceComparator extends Object implements Comparator<org.apache.sling.api.resource.Resource>, Serializable
Orders resources alphabetically by name (ascending).- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description NameResourceComparator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompare(org.apache.sling.api.resource.Resource o1, org.apache.sling.api.resource.Resource o2)-
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
-
-
-
-
Method Detail
-
compare
public int compare(org.apache.sling.api.resource.Resource o1, org.apache.sling.api.resource.Resource o2)- Specified by:
comparein interfaceComparator<org.apache.sling.api.resource.Resource>
-
-