org.directwebremoting.datasync
Class DefaultComparatorFactory<T>

java.lang.Object
  extended by org.directwebremoting.datasync.DefaultComparatorFactory<T>
All Implemented Interfaces:
ComparatorFactory<T>

public class DefaultComparatorFactory<T>
extends java.lang.Object
implements ComparatorFactory<T>

A ComparatorFactory that assumes that

Author:
Joe Walker [joe at getahead dot ltd dot uk]

Constructor Summary
DefaultComparatorFactory()
           
 
Method Summary
 java.util.Comparator<? super T> getComparator(java.lang.String property, boolean ascending)
          Return a Comparator which will sort 2 objects of type T based on the values held in the given property
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultComparatorFactory

public DefaultComparatorFactory()
Method Detail

getComparator

public java.util.Comparator<? super T> getComparator(java.lang.String property,
                                                     boolean ascending)
Description copied from interface: ComparatorFactory
Return a Comparator which will sort 2 objects of type T based on the values held in the given property

Specified by:
getComparator in interface ComparatorFactory<T>

Copyright 2008