db4o 6.1

com.db4o.query
Interface QueryComparator<Target>

All Superinterfaces:
java.io.Serializable

public interface QueryComparator<Target>
extends java.io.Serializable

Comparator for sorting queries on JDKs where java.util.Comparator is not available.


Method Summary
 int compare(Target first, Target second)
          Implement to compare two arguments for sorting.
 

Method Detail

compare

int compare(Target first,
            Target second)
Implement to compare two arguments for sorting. Return a negative value, zero, or a positive value if the first argument is smaller, equal or greater than the second.


db4o 6.1