public boolean equals()

in java/com/jetbrains/cef/remote/thrift_codegen/MenuItem.java [602:681]


  public boolean equals(MenuItem that) {
    if (that == null)
      return false;
    if (this == that)
      return true;

    boolean this_present_command_id = true;
    boolean that_present_command_id = true;
    if (this_present_command_id || that_present_command_id) {
      if (!(this_present_command_id && that_present_command_id))
        return false;
      if (this.command_id != that.command_id)
        return false;
    }

    boolean this_present_label = true && this.isSetLabel();
    boolean that_present_label = true && that.isSetLabel();
    if (this_present_label || that_present_label) {
      if (!(this_present_label && that_present_label))
        return false;
      if (!this.label.equals(that.label))
        return false;
    }

    boolean this_present_type = true && this.isSetType();
    boolean that_present_type = true && that.isSetType();
    if (this_present_type || that_present_type) {
      if (!(this_present_type && that_present_type))
        return false;
      if (!this.type.equals(that.type))
        return false;
    }

    boolean this_present_group_id = true;
    boolean that_present_group_id = true;
    if (this_present_group_id || that_present_group_id) {
      if (!(this_present_group_id && that_present_group_id))
        return false;
      if (this.group_id != that.group_id)
        return false;
    }

    boolean this_present_visible = true;
    boolean that_present_visible = true;
    if (this_present_visible || that_present_visible) {
      if (!(this_present_visible && that_present_visible))
        return false;
      if (this.visible != that.visible)
        return false;
    }

    boolean this_present_enabled = true;
    boolean that_present_enabled = true;
    if (this_present_enabled || that_present_enabled) {
      if (!(this_present_enabled && that_present_enabled))
        return false;
      if (this.enabled != that.enabled)
        return false;
    }

    boolean this_present_checked = true;
    boolean that_present_checked = true;
    if (this_present_checked || that_present_checked) {
      if (!(this_present_checked && that_present_checked))
        return false;
      if (this.checked != that.checked)
        return false;
    }

    boolean this_present_sub_menu = true && this.isSetSub_menu();
    boolean that_present_sub_menu = true && that.isSetSub_menu();
    if (this_present_sub_menu || that_present_sub_menu) {
      if (!(this_present_sub_menu && that_present_sub_menu))
        return false;
      if (!this.sub_menu.equals(that.sub_menu))
        return false;
    }

    return true;
  }