Closed hrstoyanov closed 3 months ago
Would this resolve your issue:
Optional<Parameterse> params = eq.content().asOptional(Parameters.class);
Solve your problem? You could then use functional style to resolve the case when the optional is empty (which would be if there is no entity).
@tomas-langer - works for me!
This is a continuation from the discussion of #8710
The below code can fail :
Can we make sure it does not, so devs can write clean functional fluent code? Can we return a Parameters "null object" that will have no params ? See discussion for issue #8710
Environment Details