public boolean equals()

in java/com/jetbrains/cef/remote/thrift_codegen/Color.java [343:386]


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

    boolean this_present_red = true;
    boolean that_present_red = true;
    if (this_present_red || that_present_red) {
      if (!(this_present_red && that_present_red))
        return false;
      if (this.red != that.red)
        return false;
    }

    boolean this_present_green = true;
    boolean that_present_green = true;
    if (this_present_green || that_present_green) {
      if (!(this_present_green && that_present_green))
        return false;
      if (this.green != that.green)
        return false;
    }

    boolean this_present_blue = true;
    boolean that_present_blue = true;
    if (this_present_blue || that_present_blue) {
      if (!(this_present_blue && that_present_blue))
        return false;
      if (this.blue != that.blue)
        return false;
    }

    boolean this_present_alpha = true;
    boolean that_present_alpha = true;
    if (this_present_alpha || that_present_alpha) {
      if (!(this_present_alpha && that_present_alpha))
        return false;
      if (this.alpha != that.alpha)
        return false;
    }

    return true;
  }