in library/src/main/java/com/theguardian/bridget/thrift/Image.java [394:446]
public boolean equals(Image that) {
if (that == null)
return false;
if (this == that)
return true;
boolean this_present_url = true && this.isSetUrl();
boolean that_present_url = true && that.isSetUrl();
if (this_present_url || that_present_url) {
if (!(this_present_url && that_present_url))
return false;
if (!this.url.equals(that.url))
return false;
}
boolean this_present_width = true;
boolean that_present_width = true;
if (this_present_width || that_present_width) {
if (!(this_present_width && that_present_width))
return false;
if (this.width != that.width)
return false;
}
boolean this_present_height = true;
boolean that_present_height = true;
if (this_present_height || that_present_height) {
if (!(this_present_height && that_present_height))
return false;
if (this.height != that.height)
return false;
}
boolean this_present_caption = true && this.isSetCaption();
boolean that_present_caption = true && that.isSetCaption();
if (this_present_caption || that_present_caption) {
if (!(this_present_caption && that_present_caption))
return false;
if (!this.caption.equals(that.caption))
return false;
}
boolean this_present_credit = true && this.isSetCredit();
boolean that_present_credit = true && that.isSetCredit();
if (this_present_credit || that_present_credit) {
if (!(this_present_credit && that_present_credit))
return false;
if (!this.credit.equals(that.credit))
return false;
}
return true;
}