org.directwebremoting.datasync
Interface ComparatorFactory<T>

All Known Implementing Classes:
DefaultComparatorFactory

public interface ComparatorFactory<T>

We need a way to get a comparator for a given property of a given type.

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

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
 

Method Detail

getComparator

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


Copyright 2008