From Apple’s documentation: You can use if and let together to work with values that might be missing. These values are represented as optionals. An optional value either contains...
  • May 19, 2022
  • 0 Comments
When using the Java 8 Optional class, there are two ways in which a value can be wrapped in an optional. String foobar = <value or null>; Optional.of(foobar); //...
  • May 17, 2022
  • 0 Comments
Having been using Java 8 now for 6+ months or so, I’m pretty happy with the new API changes. One area I’m still not confident in is when to...
  • May 13, 2022
  • 0 Comments
Optional type introduced in Java 8 is a new thing for many developers. Is a getter method returning Optional<Foo> type in place of the classic Foo a good practice?...
  • May 13, 2022
  • 0 Comments