Liferay 6.1.2-ce-ga3

com.liferay.portlet.messageboards.util.comparator
Class ThreadLastPostDateComparator

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

public class ThreadLastPostDateComparator
extends OrderByComparator

See Also:
Serialized Form

Field Summary
static String ORDER_BY_ASC
           
static String[] ORDER_BY_CONDITION_FIELDS
           
static String ORDER_BY_DESC
           
static String[] ORDER_BY_FIELDS
           
 
Constructor Summary
ThreadLastPostDateComparator()
           
ThreadLastPostDateComparator(boolean ascending)
           
 
Method Summary
 int compare(Object obj1, Object obj2)
           
 String getOrderBy()
           
 String[] getOrderByConditionFields()
           
 String[] getOrderByFields()
           
 boolean isAscending()
           
 
Methods inherited from class com.liferay.portal.kernel.util.OrderByComparator
getOrderByConditionValues, isAscending, 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 final String ORDER_BY_ASC
See Also:
Constant Field Values

ORDER_BY_CONDITION_FIELDS

public static final String[] ORDER_BY_CONDITION_FIELDS

ORDER_BY_DESC

public static final String ORDER_BY_DESC
See Also:
Constant Field Values

ORDER_BY_FIELDS

public static final String[] ORDER_BY_FIELDS
Constructor Detail

ThreadLastPostDateComparator

public ThreadLastPostDateComparator()

ThreadLastPostDateComparator

public ThreadLastPostDateComparator(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

getOrderByConditionFields

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

getOrderByFields

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

isAscending

public boolean isAscending()
Overrides:
isAscending in class OrderByComparator

Liferay 6.1.2-ce-ga3