edu.stanford.rt.datatype
Class OrderedType

java.lang.Object
  |
  +--edu.stanford.rt.datatype.DataType
        |
        +--edu.stanford.rt.datatype.SimpleType
              |
              +--edu.stanford.rt.datatype.OrderedType
Direct Known Subclasses:
DecimalType, EnumType, IntegerType, StringType, TimeType

public abstract class OrderedType
extends SimpleType

Author:
Ninghui Li, Sandra Qiu
OrderedType is the super class of all totally ordered simple data types: IntegerType, DecimalType, EnumType, StringType, TimeType. It requires its subclasses to be able to compare for legal values

Field Summary
 
Fields inherited from class edu.stanford.rt.datatype.DataType
 
Constructor Summary
(package private) OrderedType(java.lang.String name)
           
 
Method Summary
(package private) abstract  int compares(DataValue value1, DataValue value2)
          Method compares.
 
Methods inherited from class edu.stanford.rt.datatype.SimpleType
isValidValue
 
Methods inherited from class edu.stanford.rt.datatype.DataType
getName, toString, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OrderedType

OrderedType(java.lang.String name)
Method Detail

compares

abstract int compares(DataValue value1,
                      DataValue value2)
Method compares. Compares two DataValue objects.

Parameters:
value1 -
value2 -
Returns:
int