Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.platform.ui.web.directory
Class SelectItemComparator

java.lang.Object
  extended by org.nuxeo.ecm.platform.ui.web.directory.SelectItemComparator
All Implemented Interfaces:
Serializable, Comparator<SelectItem>

public class SelectItemComparator
extends Object
implements Comparator<SelectItem>, Serializable

Orders select items by id or label.

Author:
George Lefter
See Also:
Serialized Form

Constructor Summary
SelectItemComparator(String ordering, boolean caseSensitive)
           
 
Method Summary
 int compare(SelectItem item1, SelectItem item2)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
equals
 

Constructor Detail

SelectItemComparator

public SelectItemComparator(String ordering,
                            boolean caseSensitive)
Method Detail

compare

public int compare(SelectItem item1,
                   SelectItem item2)
Specified by:
compare in interface Comparator<SelectItem>

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.