public boolean equals()

in java/com/jetbrains/cef/remote/thrift_codegen/ScreenInfo.java [445:506]


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

    boolean this_present_device_scale_factor = true;
    boolean that_present_device_scale_factor = true;
    if (this_present_device_scale_factor || that_present_device_scale_factor) {
      if (!(this_present_device_scale_factor && that_present_device_scale_factor))
        return false;
      if (this.device_scale_factor != that.device_scale_factor)
        return false;
    }

    boolean this_present_depth = true;
    boolean that_present_depth = true;
    if (this_present_depth || that_present_depth) {
      if (!(this_present_depth && that_present_depth))
        return false;
      if (this.depth != that.depth)
        return false;
    }

    boolean this_present_depth_per_component = true;
    boolean that_present_depth_per_component = true;
    if (this_present_depth_per_component || that_present_depth_per_component) {
      if (!(this_present_depth_per_component && that_present_depth_per_component))
        return false;
      if (this.depth_per_component != that.depth_per_component)
        return false;
    }

    boolean this_present_is_monochrome = true;
    boolean that_present_is_monochrome = true;
    if (this_present_is_monochrome || that_present_is_monochrome) {
      if (!(this_present_is_monochrome && that_present_is_monochrome))
        return false;
      if (this.is_monochrome != that.is_monochrome)
        return false;
    }

    boolean this_present_rect = true && this.isSetRect();
    boolean that_present_rect = true && that.isSetRect();
    if (this_present_rect || that_present_rect) {
      if (!(this_present_rect && that_present_rect))
        return false;
      if (!this.rect.equals(that.rect))
        return false;
    }

    boolean this_present_available_rect = true && this.isSetAvailable_rect();
    boolean that_present_available_rect = true && that.isSetAvailable_rect();
    if (this_present_available_rect || that_present_available_rect) {
      if (!(this_present_available_rect && that_present_available_rect))
        return false;
      if (!this.available_rect.equals(that.available_rect))
        return false;
    }

    return true;
  }