public boolean equals()

in java/com/jetbrains/cef/remote/thrift_codegen/CefKeyEventAttributes.java [493:563]


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

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

    boolean this_present_modifiers = true;
    boolean that_present_modifiers = true;
    if (this_present_modifiers || that_present_modifiers) {
      if (!(this_present_modifiers && that_present_modifiers))
        return false;
      if (this.modifiers != that.modifiers)
        return false;
    }

    boolean this_present_windows_key_code = true;
    boolean that_present_windows_key_code = true;
    if (this_present_windows_key_code || that_present_windows_key_code) {
      if (!(this_present_windows_key_code && that_present_windows_key_code))
        return false;
      if (this.windows_key_code != that.windows_key_code)
        return false;
    }

    boolean this_present_native_key_code = true;
    boolean that_present_native_key_code = true;
    if (this_present_native_key_code || that_present_native_key_code) {
      if (!(this_present_native_key_code && that_present_native_key_code))
        return false;
      if (this.native_key_code != that.native_key_code)
        return false;
    }

    boolean this_present_character = true;
    boolean that_present_character = true;
    if (this_present_character || that_present_character) {
      if (!(this_present_character && that_present_character))
        return false;
      if (this.character != that.character)
        return false;
    }

    boolean this_present_unmodified_character = true;
    boolean that_present_unmodified_character = true;
    if (this_present_unmodified_character || that_present_unmodified_character) {
      if (!(this_present_unmodified_character && that_present_unmodified_character))
        return false;
      if (this.unmodified_character != that.unmodified_character)
        return false;
    }

    boolean this_present_is_system_key = true;
    boolean that_present_is_system_key = true;
    if (this_present_is_system_key || that_present_is_system_key) {
      if (!(this_present_is_system_key && that_present_is_system_key))
        return false;
      if (this.is_system_key != that.is_system_key)
        return false;
    }

    return true;
  }