Liferay 6.0.5

com.liferay.portlet.journal.util.comparator
Class ArticleDisplayDateComparator

java.lang.Object
  extended by com.liferay.portal.kernel.util.OrderByComparator
      extended by com.liferay.portlet.journal.util.comparator.ArticleDisplayDateComparator
All Implemented Interfaces:
Serializable, Comparator

public class ArticleDisplayDateComparator
extends OrderByComparator

See Also:
Serialized Form

Field Summary
static String ORDER_BY_ASC
           
static String ORDER_BY_DESC
           
static String[] ORDER_BY_FIELDS
           
 
Constructor Summary
ArticleDisplayDateComparator()
           
ArticleDisplayDateComparator(boolean ascending)
           
 
Method Summary
 int compare(Object obj1, Object obj2)
           
 String getOrderBy()
           
 String[] getOrderByFields()
           
 boolean isAscending()
           
 
Methods inherited from class com.liferay.portal.kernel.util.OrderByComparator
getOrderByValues, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
equals
 

Field Detail

ORDER_BY_ASC

public static String ORDER_BY_ASC

ORDER_BY_DESC

public static String ORDER_BY_DESC

ORDER_BY_FIELDS

public static String[] ORDER_BY_FIELDS
Constructor Detail

ArticleDisplayDateComparator

public ArticleDisplayDateComparator()

ArticleDisplayDateComparator

public ArticleDisplayDateComparator(boolean ascending)
Method Detail

compare

public int compare(Object obj1,
                   Object obj2)
Specified by:
compare in interface Comparator
Specified by:
compare in class OrderByComparator

getOrderBy

public String getOrderBy()
Overrides:
getOrderBy in class OrderByComparator

getOrderByFields

public String[] getOrderByFields()
Overrides:
getOrderByFields in class OrderByComparator

isAscending

public boolean isAscending()
Overrides:
isAscending in class OrderByComparator

Liferay 6.0.5