Skip to content

Commit

Permalink
fixed javadoc
Browse files Browse the repository at this point in the history
Signed-off-by: martinpkr <[email protected]>
  • Loading branch information
martinpkr committed Jun 2, 2024
1 parent 7a37dea commit 00bd9c7
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -474,11 +474,12 @@ public static Map<String, String> convertStringToObjectMapToStringToStringMap(Ma
}

/**
* Checks if the inputs map contains the specified key and parses the associated value to a Boolean.
* Checks if the inputs map contains the specified key and parses the associated value to a generic class.
*
* @param inputs the map containing the input data
* @param key the key to check in the map
* @return the Boolean value associated with the key if present, or null if the key is not found
* @param type the class to parse the value to
* @return the generic type value associated with the key if present, or null if the key is not found
*/
public static <T> T parseIfExists(Map<String, Object> inputs, String key, Class<T> type) {
if (!inputs.containsKey(key)) {
Expand Down

0 comments on commit 00bd9c7

Please sign in to comment.