KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
Sometimes I want to return the value that is a property of an object wrapped in option, but I can't do that easily with getValue.orElse(otherValue) . For instance, I am mapping properties inline and I want to use a pattern like object.get.property.orElse("") . But the preceding doesn't compile. How can I access that property and still maintain an option-like syntax?
Tags (comma-separated)
Save Edits
Cancel