boolean (Object obj) { if (obj == this) return true; if (obj == null || obj.getClass() != this.getClass()) return false; var that = (FormatterDocFragment)obj; return Objects.equals(myName, that.myName) && Objects.equals(myDescription, that.myDescription) && Objects.equals(myFragmentType, that.myFragmentType); }