I recently came across this magical operator when digging into Groovy: <=>
Groovy has really made me happy with elvis operators ?. and ?: which I use constantly
Name : Spaceship operator
Method that it uses : a.compareTo(b) //where a and b are the variables that has been used
Class : java.lang.Comparable
And this link explains about that operator in a bit more . Click Here