diff --git a/api/communication/communication-core/src/main/java/jakarta/nosql/Settings.java b/api/communication/communication-core/src/main/java/jakarta/nosql/Settings.java index 423ff858f..d200d12e9 100644 --- a/api/communication/communication-core/src/main/java/jakarta/nosql/Settings.java +++ b/api/communication/communication-core/src/main/java/jakarta/nosql/Settings.java @@ -79,7 +79,16 @@ public interface Settings { */ Optional get(Iterable keys); - Optional get(Iterable> suppliers); + /** + * Returns the value to which the specified from one of these keys is mapped, or {@link Optional#empty()} + * if this map contains no mapping for the key. + * + * @param suppliers the key's suppliers whose associated value is to be returned + * @return the value to which the specified key is mapped, or {@link Optional#empty()} + * if this map contains no mapping for the key + * @throws NullPointerException when keys is null + */ + Optional getSupplier(Iterable> suppliers); /** * Finds all keys that have the parameter as a prefix @@ -109,7 +118,14 @@ public interface Settings { */ List prefix(Iterable prefixes); - List prefix(Iterable> suppliers); + /** + * Finds all keys that have the parameter as a prefix + * + * @param suppliers the list of prefixes + * @return all the keys from prefix + * @throws NullPointerException when prefixes is null + */ + List prefixSupplier(Iterable> suppliers); /** * Returns the value to which the specified key is mapped, or null if this map contains no mapping for the key.