com.jalios.jcms
Class Data.DataNameComparator<T extends Data>
java.lang.Object
com.jalios.jstore.BasicStorable.CdateComparator<T>
com.jalios.jcms.comparator.BasicComparator<T>
com.jalios.jcms.Data.DataNameComparator<T>
- Type Parameters:
T
-
- All Implemented Interfaces:
- Comparator<T>
- Enclosing class:
- Data
public static class Data.DataNameComparator<T extends Data>
- extends BasicComparator<T>
This comparator compares two Data using their Data Name.
If both compared Data have the same Data Name, compare them using their id.
- Since:
- jcms-5.5.0
Method Summary |
int |
compare(T storable1,
T storable2)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
lang
protected String lang
Data.DataNameComparator
public Data.DataNameComparator()
Data.DataNameComparator
public Data.DataNameComparator(String language)
compare
public int compare(T storable1,
T storable2)
- Specified by:
compare
in interface Comparator<T extends Data>
- Overrides:
compare
in class BasicStorable.CdateComparator<T extends Data>
Copyright © 2001-2010 Jalios SA. All Rights Reserved.