Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_017ic4b6gdUKYmBw6bUKcM7t
11 lines
381 B
Plaintext
11 lines
381 B
Plaintext
isPresent : true
|
|
isEmpty : true
|
|
get (present): Mumbai
|
|
get (empty) : java.util.NoSuchElementException: No value present
|
|
orElseThrow(): java.util.NoSuchElementException: No value present
|
|
orElse : Unknown City
|
|
orElseGet : DefaultCity
|
|
orElseThrow(s): java.lang.IllegalStateException: City must be set
|
|
ifPresent : City is Mumbai
|
|
ifPresentOrElse: No city configured
|