Last active
January 3, 2019 15:42
-
-
Save scottashipp/c764d8160bad4889b01c34d7abc6bb71 to your computer and use it in GitHub Desktop.
Use of Mill's NullSafe class
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
String zipCode = NullSafe.of(user) | |
.call(User::addresses) | |
.call(UserAddresses::billingAddress) | |
.call(Address::zipCode) | |
.get(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment