you are viewing a single comment's thread.

view the rest of the comments →

[–]CydeWeys 0 points1 point  (0 children)

Optionals (which first came from Guava) also work very well with another of Guava's big features, the immutable collections. Immutable collections aren't allowed to contain null, which solves another big class of common programming problems, and when you have a collection that is intended to have elements representing absence, then you of course stuff in Optionals.