Naming Optional query methods

from blog Stephen Colebourne's blog, | ↗ original
In the last article I outlined a pragmatic approach to Java 8's Optional class. In this one I'm looking at how we should name query methods that might return Optional. Convenience method naming Consider a requirement to produce a tree data structure, perhaps something like XML DOM. The basic data structure might look something like this: public...