com.liferay.portal.kernel.util
Class OrderByComparator

java.lang.Object
  extended by com.liferay.portal.kernel.util.OrderByComparator
All Implemented Interfaces:
java.io.Serializable, java.util.Comparator

public abstract class OrderByComparator
extends java.lang.Object
implements java.util.Comparator, java.io.Serializable

View Source

Author:
Brian Wing Shun Chan
See Also:
Serialized Form

Constructor Summary
OrderByComparator()
           
 
Method Summary
abstract  int compare(java.lang.Object obj1, java.lang.Object obj2)
           
 java.lang.String getOrderBy()
           
 java.lang.String 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
 

Constructor Detail

OrderByComparator

public OrderByComparator()
Method Detail

getOrderBy

public java.lang.String getOrderBy()

compare

public abstract int compare(java.lang.Object obj1,
                            java.lang.Object obj2)
Specified by:
compare in interface java.util.Comparator

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object