JavaBeans in Comparators
Data objects are the new orange! So I am continuously coding data objects and I find myself writing a lot of repetitive comparison code: ` public int compareTo(Object other) { if(other == null) return -1; Car otherCar = (Car)other; if(myColor == null && otherCar.getColor() != null) return -1; if(myColor.…