Class AbstractBlogPostsCannedQueryFactory.BlogEntityComparator
java.lang.Object
org.alfresco.repo.query.AbstractQNameAwareCannedQueryFactory.PropertyBasedComparator<BlogEntity>
org.alfresco.repo.blog.cannedqueries.AbstractBlogPostsCannedQueryFactory.BlogEntityComparator
- All Implemented Interfaces:
Comparator<BlogEntity>
- Enclosing class:
- AbstractBlogPostsCannedQueryFactory
protected static class AbstractBlogPostsCannedQueryFactory.BlogEntityComparator
extends AbstractQNameAwareCannedQueryFactory.PropertyBasedComparator<BlogEntity>
Utility class to sort
BlogPostInfos 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 -
Method Summary
Methods inherited from class org.alfresco.repo.query.AbstractQNameAwareCannedQueryFactory.PropertyBasedComparator
compareMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Constructor Details
-
BlogEntityComparator
-
-
Method Details
-
getProperty
- Specified by:
getPropertyin classAbstractQNameAwareCannedQueryFactory.PropertyBasedComparator<BlogEntity>
-