Package com.xpn.xwiki.objects
Class ElementComparator
- java.lang.Object
-
- 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
Constructors Constructor Description ElementComparator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
-
-
-
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 interfaceComparator
- See Also:
Comparator.compare(java.lang.Object, java.lang.Object)
-
-