Created
April 17, 2021 15:14
-
-
Save zivce/5709ffa70f47f0942115f2444cff9204 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 public Optional<String> fetchStoreStatus(int storeId) { | |
2 Optional<String> foundStore = ... ; // fetch declared store status by id | |
3 return foundStore.or(() -> Optional.of("store uid not found")); | |
4 } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment