Package io.wcm.sling.commons.resource
Class NameResourceComparator
- java.lang.Object
-
- io.wcm.sling.commons.resource.NameResourceComparator
-
- All Implemented Interfaces:
java.io.Serializable
,java.util.Comparator<org.apache.sling.api.resource.Resource>
@ProviderType public final class NameResourceComparator extends java.lang.Object implements java.util.Comparator<org.apache.sling.api.resource.Resource>, java.io.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 int
compare(org.apache.sling.api.resource.Resource o1, org.apache.sling.api.resource.Resource o2)
-