org.clazzes.util.comparators
Interface ComparatorFactory
- All Known Implementing Classes:
- DefaultComparatorFactory, LocalizedComparatorFactory
public interface ComparatorFactory
Implementations of this interface generate comparators for a
given class.
- Author:
- wglas
Method Summary |
java.util.Comparator |
getComparator(java.lang.Class clazz)
Get a comparator, which compares instances of the given class. |
getComparator
java.util.Comparator getComparator(java.lang.Class clazz)
- Get a comparator, which compares instances of the given class.
- Parameters:
clazz
- The class, which will be compared by the returned Comparator.
- Returns:
- A Comparator, which handles objects of the supplied class.
Copyright © 2010. All Rights Reserved.