I\'ve read on many Web sites Optional should be used as a return type only, and not used in method arguments. I\'m struggling to find a logical reason why. For example I h
Optionals aren't designed for this purpose, as explained nicely by Brian Goetz.
You can always use @Nullable to denote that a method argument can be null. Using an optional does not really enable you to write your method logic more neatly.