public boolean equals()

in library/src/main/java/com/theguardian/bridget/thrift/Gallery.java [578:612]


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

      boolean this_present_images = true && this.isSetImages();
      boolean that_present_images = true && that.isSetImages();
      if (this_present_images || that_present_images) {
        if (!(this_present_images && that_present_images))
          return false;
        if (!this.images.equals(that.images))
          return false;
      }

      boolean this_present_selectedIndex = true;
      boolean that_present_selectedIndex = true;
      if (this_present_selectedIndex || that_present_selectedIndex) {
        if (!(this_present_selectedIndex && that_present_selectedIndex))
          return false;
        if (this.selectedIndex != that.selectedIndex)
          return false;
      }

      boolean this_present_articleTitle = true && this.isSetArticleTitle();
      boolean that_present_articleTitle = true && that.isSetArticleTitle();
      if (this_present_articleTitle || that_present_articleTitle) {
        if (!(this_present_articleTitle && that_present_articleTitle))
          return false;
        if (!this.articleTitle.equals(that.articleTitle))
          return false;
      }

      return true;
    }