com.jaxfront.core.type
Class TypeNameComparator
java.lang.Object
com.jaxfront.core.type.TypeNameComparator
- All Implemented Interfaces:
- java.util.Comparator
public class TypeNameComparator
- extends java.lang.Object
- implements java.util.Comparator
This class compares two JAXFront Types according to its position in the
XMLSchema tree.
- Version:
- 1.60
Field Summary |
static int |
ASC
|
static int |
DES
|
Method Summary |
int |
compare(java.lang.Object o1,
java.lang.Object o2)
Compares its two arguments for order. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.util.Comparator |
equals |
ASC
public static final int ASC
- See Also:
- Constant Field Values
DES
public static final int DES
- See Also:
- Constant Field Values
TypeNameComparator
public TypeNameComparator(int direction)
compare
public int compare(java.lang.Object o1,
java.lang.Object o2)
- Compares its two arguments for order. Returns a negative integer, zero,
or a positive integer as the first argument is less than, equal to, or
greater than the second.
- Specified by:
compare
in interface java.util.Comparator