boolean (Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; HighlightSeverity that = (HighlightSeverity)o; return myVal == that.myVal && myName.equals(that.myName); }