public int compareTo()

in library/src/main/java/com/theguardian/bridget/thrift/Gallery.java [632:670]


    public int compareTo(launchSlideshow_args other) {
      if (!getClass().equals(other.getClass())) {
        return getClass().getName().compareTo(other.getClass().getName());
      }

      int lastComparison = 0;

      lastComparison = java.lang.Boolean.compare(isSetImages(), other.isSetImages());
      if (lastComparison != 0) {
        return lastComparison;
      }
      if (isSetImages()) {
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.images, other.images);
        if (lastComparison != 0) {
          return lastComparison;
        }
      }
      lastComparison = java.lang.Boolean.compare(isSetSelectedIndex(), other.isSetSelectedIndex());
      if (lastComparison != 0) {
        return lastComparison;
      }
      if (isSetSelectedIndex()) {
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.selectedIndex, other.selectedIndex);
        if (lastComparison != 0) {
          return lastComparison;
        }
      }
      lastComparison = java.lang.Boolean.compare(isSetArticleTitle(), other.isSetArticleTitle());
      if (lastComparison != 0) {
        return lastComparison;
      }
      if (isSetArticleTitle()) {
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.articleTitle, other.articleTitle);
        if (lastComparison != 0) {
          return lastComparison;
        }
      }
      return 0;
    }