|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jdom.contrib.helpers.JDOMHelper
public class JDOMHelper
This class contains static helper methods.
Constructor Summary | |
---|---|
JDOMHelper()
|
Method Summary | |
---|---|
static void |
sortElements(org.jdom.Element parent,
java.util.Comparator c)
Sorts the child elements, using the specified comparator. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JDOMHelper()
Method Detail |
---|
public static void sortElements(org.jdom.Element parent, java.util.Comparator c)
Sorts the child elements, using the specified comparator.
parent
- The parent Element, whose child Elements should be sorted.c
- The Comparator to use for ordering the child Elements.
It will only be given Element objects to compare.
This method overcomes two problems with the standard Collections.sort():
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |