This is a code snippet that I want to modify.
fullAlert.getSupportingData().forEach( data ->
dataMap.put(data.getKey(), data.getValue())
);
I want to check if data.getValue() does return empty or null.
If so then
dataMap.put(data.getKey(), data.getValue())
Else I want to replace backslashes
dataMap.put(data.getKey(), data.getValue().replace("\\","\\\\"))
I am new to lambda expressions.