boolean (Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; final TemplateUsageGroup that = (TemplateUsageGroup)o; if (!myTemplate.equals(that.myTemplate)) return false; assert compareTo(that) == 0; return true; }