Skip to content

Commit 50cead5

Browse files
authored
Fix the keys API and implementation to remove comparator argument (oracle#48)
1 parent a9e2c4b commit 50cead5

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/named-cache-client.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -485,11 +485,10 @@ export interface NamedMap<K, V> {
485485
*
486486
* @param filter the Filter object representing the criteria that the
487487
* entries of this map should satisfy
488-
* @param comparator the comparator for sorting
489488
*
490489
* @return a set of keys for entries that satisfy the specified criteria
491490
*/
492-
keys (filter: Filter, comparator?: Comparator): Promise<RemoteSet<K>>
491+
keys (filter: Filter): Promise<RemoteSet<K>>
493492

494493
/**
495494
* Returns a Set view of the mappings contained in this map.
@@ -1037,7 +1036,7 @@ export class NamedCacheClient<K = any, V = any>
10371036
/**
10381037
* @inheritDoc
10391038
*/
1040-
keys (filter?: Filter, comparator?: Comparator): Promise<RemoteSet<K>> {
1039+
keys (filter?: Filter): Promise<RemoteSet<K>> {
10411040
const self = this
10421041
if (!filter) {
10431042
return Promise.resolve(new KeySet(this))

0 commit comments

Comments
 (0)