org.apache.struts2.util
Class Sorter

java.lang.Object
  extended by org.apache.struts2.util.Sorter

public class Sorter
extends Object

Sorters. Utility sorters for use with the "sort" tag.

See Also:
SortIteratorTag, SortIteratorFilter

Constructor Summary
Sorter()
           
 
Method Summary
 Comparator getAscending()
           
 Comparator getAscending(String anExpression)
           
 Comparator getComparator(String anExpression, boolean ascending)
           
 Comparator getDescending()
           
 Comparator getDescending(String anExpression)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Sorter

public Sorter()
Method Detail

getAscending

public Comparator getAscending()

getAscending

public Comparator getAscending(String anExpression)

getComparator

public Comparator getComparator(String anExpression,
                                boolean ascending)

getDescending

public Comparator getDescending()

getDescending

public Comparator getDescending(String anExpression)


Copyright © 2000-2008 Apache Software Foundation. All Rights Reserved.