/demo-elvis-operator

Shows how to create an Elvis (or null coalescing) operator with lambda expressions.

Primary LanguageJavaThe UnlicenseUnlicense

Elvis Operator

This project provides the implementation of an Elvis operator and the code samples from a CodeFX blog about it.

It is fairly simple with a class Elvis, which contains the operator, and a class ElvisDemo, which demonstrates its use as well as how you can solve the same problem without it.