ewe.util
Interface CompareInts

All Known Implementing Classes:
CompareArrayElements, DatabaseEntryCompareInts

public interface CompareInts

This interface is used to compare two Object values which are referenced somehow via unique integer values. For example the integer values could be indexes of an array, or they could be positions in a large data file. CompareInts objects are used in Utils.sort() methods, where an array of integer values are sorted.


Method Summary
 int compare(int one, int two)
          This should return <0 if one is considered less than two, >0 if one is considered more than two, and 0 if they are considered equal.
 

Method Detail

compare

public int compare(int one,
                   int two)
This should return <0 if one is considered less than two, >0 if one is considered more than two, and 0 if they are considered equal.