Class GetCalendarEntriesCannedQuery.CalendarEntityComparator
- java.lang.Object
-
- org.alfresco.repo.query.AbstractQNameAwareCannedQueryFactory.PropertyBasedComparator<CalendarEntity>
-
- org.alfresco.repo.calendar.cannedqueries.GetCalendarEntriesCannedQuery.CalendarEntityComparator
-
- All Implemented Interfaces:
java.util.Comparator<CalendarEntity>
- Enclosing class:
- GetCalendarEntriesCannedQuery
protected static class GetCalendarEntriesCannedQuery.CalendarEntityComparator extends AbstractQNameAwareCannedQueryFactory.PropertyBasedComparator<CalendarEntity>
Utility class to sortCalendarEntrys on the basis of a Comparable property. Comparisons of two null properties are considered 'equal' by this comparator. Comparisons involving one null and one non-null property will return the null property as being 'before' the non-null property. Note that it is the responsibility of the calling code to ensure that the specified property values actually implement Comparable themselves.
-
-
Field Summary
-
Fields inherited from class org.alfresco.repo.query.AbstractQNameAwareCannedQueryFactory.PropertyBasedComparator
comparableProperty
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedCalendarEntityComparator(org.alfresco.service.namespace.QName property)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.ComparablegetProperty(CalendarEntity entity)-
Methods inherited from class org.alfresco.repo.query.AbstractQNameAwareCannedQueryFactory.PropertyBasedComparator
compare
-
-
-
-
Method Detail
-
getProperty
protected java.lang.Comparable getProperty(CalendarEntity entity)
- Specified by:
getPropertyin classAbstractQNameAwareCannedQueryFactory.PropertyBasedComparator<CalendarEntity>
-
-