Skip to content

2.2.0: Optional features

Choose a tag to compare

@thekid thekid released this 30 May 12:35
· 274 commits to master since this release
  • Made Optional's constructor public and allow new Optional(null) to
    represent an optional with a present null value
    (@thekid)
  • Changed Optional::of() to return an empty optional if null is passed
    (@thekid)
  • Added whenNull() method to util.data.Optional to allow easy chaining
    (@thekid)
  • Added filter(), map() and orUse() implementations to util.data.Optional
    See pull request #21
    (@thekid)