I recently stumbled upon this magic operator while digging in Groovy: <=>
Did Groovy really enjoy the elvis operators ?. and ?: which I use constantly now, and would like very much in Java. Using this new operator, I found this link . Comparators seem to be a lot easier. My question is how it handles null values and how it compares a non Comparable object. This operator has a name, I could not find it on Google.
source
share