com.sun.msv.datatype.xsd
Interface Comparator
- All Known Implementing Classes:
- com.sun.msv.datatype.xsd.DateTimeBaseType, DurationType, com.sun.msv.datatype.xsd.FloatingNumberType, com.sun.msv.datatype.xsd.IntegerDerivedType, NumberType
- public interface Comparator
Comparable datatype.
Those datatypes which has order relation must implement this interface.
RangeFacet uses this interface to do its job.
It differs from Comparator
in return value.
- Author:
- Kohsuke KAWAGUCHI
Method Summary |
int |
compare(java.lang.Object o1,
java.lang.Object o2)
compare to value types and decides its order relation |
EQUAL
public static final int EQUAL
- See Also:
- Constant Field Values
GREATER
public static final int GREATER
- See Also:
- Constant Field Values
LESS
public static final int LESS
- See Also:
- Constant Field Values
UNDECIDABLE
public static final int UNDECIDABLE
- See Also:
- Constant Field Values
compare
public int compare(java.lang.Object o1,
java.lang.Object o2)
- compare to value types and decides its order relation
Copyright © 2001-2003 Sun Microsystems, Inc. Documenation generated April 26 2005.