Effective Java with Groovy - Are you implementing equals and hashCode correctly?
Consider the following Groovy code. class Product { String sku String description BigDecimal price } Now let's put the Product class into use as follows. Product book1 = new Product(sku: 'P101', description: 'Effective Java', price: 599.0) Product book2 = new Product(sku: 'P101', description: 'Effective Java', price: 599.0) println book1 == book2…