Nicolai Parlog 3/16/2015

Roll Your Own Pirate-Elvis Operator

Read Original

This technical article discusses the absence of a null coalescing (Elvis) operator in Java and demonstrates how to closely emulate its functionality using method references and custom utility methods. It explains the operator's purpose, provides implementation examples, and includes a link to a repository with reusable code under a permissive license.

Roll Your Own Pirate-Elvis Operator

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser

Top of the Week