Re:Show HN: I Wrote a Book on Java
by cbsmith on Tuesday September 24, 2024 @02:39AM
(#41633678)
Frankly, your contract was that you have no idea what fields those objects might have. I'm just fulfilling it. You won't have checks for validity of each field, as Optional is valid, but you will have to have code that handles Optional<> types (so things like foo.getModel().orElse()...), which is the requirement you described. That doesn't mean you'll be constantly checking the validity of each field.
[ Parent
| on HN ]
There are no comments on this comment yet.