edu.ksu.cis.projects.bogor.module.value
Interface IValueComparator


public interface IValueComparator

An interface for a value comparator.

Version:
CVS $Revision: 1.2 $ $Date: 2004/02/25 02:40:37 $
Author:
Robby

Method Summary
 int compareValues(IValue v1, IValue v2)
          Compares two values.
 void reset()
          Resets this value comparator.
 

Method Detail

compareValues

int compareValues(IValue v1,
                  IValue v2)
Compares two values.

Parameters:
v1 - The first value to compare. Must be non-null.
v2 - The second value to compare. Must be non-null.
Returns:
-1, if this value is "less" than the other value. 0, if this value is "equal" to the other value or if the ordering of the two values cannot be determined. 1, if this value is "greater" than the other value.

reset

void reset()
Resets this value comparator.