Groovy - Equality (= , Identity (Is)

Card Puncher Data Processing

About

In Java == means equality of primitive types or identity for objects. In Groovy == translates to a.compareTo(b)==0, if they are Comparable, and a.equals(b) otherwise. To check for identity, there is is. E.g. a.is(b).







Share this page:
Follow us:
Task Runner