Java Stream How to - Java Optional Example








  1. Java Check if OptionalInt has value and provide default value
  2. Java Create empty Optional
  3. Java Create Optional custom Object value
  4. Java Create Optional from null
  5. Java Create Optional from string
  6. Java Create Optional String value
  7. Java Find first with Optional
  8. Java Get if present from Optional
  9. Java Get value or default from Optional
  10. Java Map to OptionalInt with mapToInt
  11. Java Output if present in an Optional
  12. Java Output value if present in an Optional