com.jalios.jcms.workspace
Class Workspace.GroupSizeComparator<T extends Workspace>

java.lang.Object
  extended by com.jalios.jstore.BasicStorable.CdateComparator<T>
      extended by com.jalios.jcms.comparator.BasicComparator<T>
          extended by com.jalios.jcms.workspace.Workspace.NameComparator<T>
              extended by com.jalios.jcms.workspace.Workspace.GroupSizeComparator<T>
Type Parameters:
T - workspace type
All Implemented Interfaces:
Comparator<T>
Enclosing class:
Workspace

public static class Workspace.GroupSizeComparator<T extends Workspace>
extends Workspace.NameComparator<T>

Since:
jcms-5.0.0

Field Summary
 
Fields inherited from class com.jalios.jcms.comparator.BasicComparator
channel, contextMap, jcmsContext, language, locale
 
Constructor Summary
Workspace.GroupSizeComparator()
          Create anew Group comparator using current language
Workspace.GroupSizeComparator(String lang)
           
 
Method Summary
 int compare(T ws1, T ws2)
           
 
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
 

Constructor Detail

Workspace.GroupSizeComparator

public Workspace.GroupSizeComparator()
Create anew Group comparator using current language

Since:
jcms-7.1.0

Workspace.GroupSizeComparator

public Workspace.GroupSizeComparator(String lang)
Parameters:
lang - the language to use when comparing workspaces' name if number of groups in workspaces is the same
Since:
jcms-5.6.1
Method Detail

compare

public int compare(T ws1,
                   T ws2)
Specified by:
compare in interface Comparator<T extends Workspace>
Overrides:
compare in class Workspace.NameComparator<T extends Workspace>


Copyright © 2001-2010 Jalios SA. All Rights Reserved.