Skip to content

Commit

Permalink
update javadoc
Browse files Browse the repository at this point in the history
Signed-off-by: Otavio Santana <otaviopolianasantana@gmail.com>
  • Loading branch information
otaviojava committed Nov 8, 2022
1 parent b147ea4 commit 7f46151
Showing 1 changed file with 18 additions and 2 deletions.
Expand Up @@ -79,7 +79,16 @@ public interface Settings {
*/
Optional<Object> get(Iterable<String> keys);

Optional<Object> get(Iterable<Supplier<String>> 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<Object> getSupplier(Iterable<Supplier<String>> suppliers);

/**
* Finds all keys that have the parameter as a prefix
Expand Down Expand Up @@ -109,7 +118,14 @@ public interface Settings {
*/
List<Object> prefix(Iterable<String> prefixes);

List<Object> prefix(Iterable<Supplier<String>> 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<Object> prefixSupplier(Iterable<Supplier<String>> suppliers);

/**
* Returns the value to which the specified key is mapped, or null if this map contains no mapping for the key.
Expand Down

0 comments on commit 7f46151

Please sign in to comment.