3 Comments

  1. Michael

    I’m still waiting for an epiphany on why an isPresent() check saves anything over a null check. The orElse* methods are a definite plus though

    Reply

  2. This is a very enticing way of using Optionals. Thanks. Is there a way to use Optionals in Android development with Java 8?

    Reply
  3. Ben C. R. Leggiero

    Lazy Initialization is much more elegant, IMHO. Unfortunately there aren’t any built-in ways to do this, so I usually write my own generic Lazy class.

    Reply

Leave a Reply