com.townleyenterprises.filter
Class SortSpecification
java.lang.Object
com.townleyenterprises.filter.SortSpecification
- All Implemented Interfaces:
- java.io.Serializable
- public final class SortSpecification
- extends java.lang.Object
- implements java.io.Serializable
This class encapsulates a collating specification, allowing sorting
by arbitrary property values.
- Since:
- 2.0
- Version:
- $Id: SortSpecification.java,v 1.3 2004/07/28 10:33:58 atownley Exp $
- Author:
- Andrew S. Townley
- See Also:
- Serialized Form
Constructor Summary |
SortSpecification(java.lang.String property)
The constructor takes the name of the property to sort
in ascending order. |
SortSpecification(java.lang.String property,
SortOrder order)
The constructor takes the name of the property to sort
and the order which should be applied. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
SortSpecification
public SortSpecification(java.lang.String property)
- The constructor takes the name of the property to sort
in ascending order.
- Parameters:
property
- the property name to be sorted
SortSpecification
public SortSpecification(java.lang.String property,
SortOrder order)
- The constructor takes the name of the property to sort
and the order which should be applied.
- Parameters:
property
- the property name to be sortedorder
- the sort order
toString
public java.lang.String toString()
compareTo
public int compareTo(java.lang.Object o)
getProperty
public java.lang.String getProperty()
getOrder
public SortOrder getOrder()
Copyright © 2002-2004, Andrew S. Townley and Townley Enterprises. All Rights Reserved.
This project is hosted on http://te-code.sourceforge.net.