Servertec
Persistent Object Store
1.4.1 09/04/2005

stec.pos
Interface IndexCollator


public interface IndexCollator

Interface used to define compare method used by indexes when ordering keys and duplicate values.

Since:
1.1.0 09/01/2002

Method Summary
 int compareTo(java.lang.Object object1, java.lang.Object object2)
          Returns whether the objects specified are equal or which object is greater than and which object is less than.
 

Method Detail

compareTo

int compareTo(java.lang.Object object1,
              java.lang.Object object2)
              throws java.io.IOException
Returns whether the objects specified are equal or which object is greater than and which object is less than.

Parameters:
object1 - the first object to compare.
object2 - the second object to compare.
Returns:
the value 0 if the argument first object is equal to the second object; a value less than 0 if the first object is less than the second object; and a value greater than 0 if the first object is greater than the second object.
Throws:
java.io.Exception - if any exception occurs.
java.io.IOException

Servertec
Persistent Object Store
1.4.1 09/04/2005

Copyright © 2001-2005 Servertec. All rights reserved.