I have this map function as part of my stream. parse.apply is basically doing Double::valueOf. My intelliJ suggest me I can replace statement lambda with regular expression Lambda.
.map(x -> { return StringUtils.isEmpty(x) ? parse.apply("0") : parse.apply(x);
})
If I didn't not have to worry about empty strings I could have done:
.map(parse::apply). How do I do in this case?