Package 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
- any Data type
- All Implemented Interfaces:
java.util.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
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.jalios.jcms.comparator.BasicComparator
BasicComparator.StringComparisonMethod
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
lang
-
Fields inherited from class com.jalios.jcms.comparator.BasicComparator
channel, comparisonMethod, contextMap, jcmsContext, language, locale
-
-
Constructor Summary
Constructors Constructor Description DataNameComparator()
DataNameComparator(java.lang.String language)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compare(T storable1, T storable2)
-
Methods inherited from class com.jalios.jcms.comparator.BasicComparator
compareString
-
Methods inherited from class com.jalios.jstore.BasicStorable.CdateComparator
compareDate
-
-