com.jalios.jcms
Class Data.DataNameComparator<T extends Data>

java.lang.Object
  extended by com.jalios.jstore.BasicStorable.CdateComparator<T>
      extended by com.jalios.jcms.comparator.BasicComparator<T>
          extended by 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

Field Summary
protected  String lang
           
 
Fields inherited from class com.jalios.jcms.comparator.BasicComparator
channel, contextMap, jcmsContext, language, locale
 
Constructor Summary
Data.DataNameComparator()
           
Data.DataNameComparator(String language)
           
 
Method Summary
 int compare(T storable1, T storable2)
           
 
Methods inherited from class com.jalios.jstore.BasicStorable.CdateComparator
compareDate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
equals
 

Field Detail

lang

protected String lang
Constructor Detail

Data.DataNameComparator

public Data.DataNameComparator()

Data.DataNameComparator

public Data.DataNameComparator(String language)
Method Detail

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.