com.sun.msv.datatype.xsd

Interface Comparator

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 java.util.Comparator in return value.

Author: Kohsuke KAWAGUCHI

Field Summary
static intEQUAL
static intGREATER
static intLESS
static intUNDECIDABLE
Method Summary
intcompare(Object o1, Object o2)
compare to value types and decides its order relation

Field Detail

EQUAL

public static final int EQUAL

GREATER

public static final int GREATER

LESS

public static final int LESS

UNDECIDABLE

public static final int UNDECIDABLE

Method Detail

compare

public int compare(Object o1, Object o2)
compare to value types and decides its order relation