com.sun.msv.datatype.xsd
Interface Comparator
- All Known Implementing Classes:
- ByteType, DateTimeType, DateType, DoubleType, DurationType, FloatType, GDayType, GMonthDayType, GMonthType, GYearMonthType, GYearType, IntegerType, IntType, LongType, NegativeIntegerType, NonNegativeIntegerType, NonPositiveIntegerType, NumberType, PositiveIntegerType, ShortType, TimeType, UnsignedByteType, UnsignedIntType, UnsignedLongType, UnsignedShortType
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(Object o1,
Object o2)
compare to value types and decides its order relation |
LESS
static final int LESS
- See Also:
- Constant Field Values
EQUAL
static final int EQUAL
- See Also:
- Constant Field Values
GREATER
static final int GREATER
- See Also:
- Constant Field Values
UNDECIDABLE
static final int UNDECIDABLE
- See Also:
- Constant Field Values
compare
int compare(Object o1,
Object o2)
- compare to value types and decides its order relation
MSV