com.jalios.jcms.workspace
Class Workspace.MemberSizeComparator<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.MemberSizeComparator<T>
Type Parameters:
T - workspace type
All Implemented Interfaces:
Comparator<T>
Enclosing class:
Workspace

public static class Workspace.MemberSizeComparator<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.MemberSizeComparator()
           
Workspace.MemberSizeComparator(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.MemberSizeComparator

public Workspace.MemberSizeComparator()
Since:
jcms-7.1.0

Workspace.MemberSizeComparator

public Workspace.MemberSizeComparator(String lang)
Parameters:
lang - the language to use when comparing workspaces' name if number of members in workspace 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.