Skip to content

Commit

Permalink
Fixes #215 - Add keySet method to KeyValueStore API
Browse files Browse the repository at this point in the history
  • Loading branch information
mnriem committed Apr 30, 2024
1 parent a988a5e commit 494670b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions api/src/main/java/com/manorrock/eagle/api/KeyValueStore.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
package com.manorrock.eagle.api;

import java.util.Map;
import java.util.Set;

/**
* The KeyValueStore API.
Expand Down Expand Up @@ -70,6 +71,15 @@ public interface KeyValueStore<K, V, UK, UV> {
* @return the delegate map.
*/
Map<String, Object> getDelegate();

/**
* Get the key set (if supported).
*
* @return the key set.
*/
default Set<K> keySet() {
throw new UnsupportedOperationException("Not supported");
}

/**
* Put the value.
Expand Down

0 comments on commit 494670b

Please sign in to comment.