Package ai.libs.jaicore.basic.kvstore
Class KVStoreSequentialComparator
- java.lang.Object
-
- ai.libs.jaicore.basic.kvstore.KVStoreSequentialComparator
-
- All Implemented Interfaces:
java.util.Comparator<org.api4.java.datastructure.kvstore.IKVStore>
public class KVStoreSequentialComparator extends java.lang.Object implements java.util.Comparator<org.api4.java.datastructure.kvstore.IKVStore>This comparator may be used to sort KVStore objects in a KVStoreCollection according to the values for the specified keys. The KVStores are then compared successively for the provided keys and ordered in ascending order.
-
-
Constructor Summary
Constructors Constructor Description KVStoreSequentialComparator(java.lang.String... sortKeys)Default c'tor initializing the comparator for a set of keys for which the kvstores are to be sorted.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompare(org.api4.java.datastructure.kvstore.IKVStore arg0, org.api4.java.datastructure.kvstore.IKVStore arg1)
-