com.xpn.xwiki.objects
Class ElementComparator

java.lang.Object
  extended by com.xpn.xwiki.objects.ElementComparator
All Implemented Interfaces:
Comparator

public class ElementComparator
extends Object
implements Comparator

Compare and sort instances of ElementInterface by name.


Constructor Summary
ElementComparator()
           
 
Method Summary
 int compare(Object o1, Object o2)
          Compares two objects (that implement ElementInterface) by name according to the rules for the compare method.
 
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

ElementComparator

public ElementComparator()
Method Detail

compare

public int compare(Object o1,
                   Object o2)
Compares two objects (that implement ElementInterface) by name according to the rules for the compare method.

Specified by:
compare in interface Comparator
See Also:
Comparator.compare(java.lang.Object, java.lang.Object)


Copyright © 2004-2013 XWiki. All Rights Reserved.