in library/src/main/java/com/theguardian/bridget/thrift/VideoSlot.java [345:388]
public boolean equals(VideoSlot that) {
if (that == null)
return false;
if (this == that)
return true;
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_videoId = true && this.isSetVideoId();
boolean that_present_videoId = true && that.isSetVideoId();
if (this_present_videoId || that_present_videoId) {
if (!(this_present_videoId && that_present_videoId))
return false;
if (!this.videoId.equals(that.videoId))
return false;
}
boolean this_present_posterUrl = true && this.isSetPosterUrl();
boolean that_present_posterUrl = true && that.isSetPosterUrl();
if (this_present_posterUrl || that_present_posterUrl) {
if (!(this_present_posterUrl && that_present_posterUrl))
return false;
if (!this.posterUrl.equals(that.posterUrl))
return false;
}
boolean this_present_duration = true && this.isSetDuration();
boolean that_present_duration = true && that.isSetDuration();
if (this_present_duration || that_present_duration) {
if (!(this_present_duration && that_present_duration))
return false;
if (this.duration != that.duration)
return false;
}
return true;
}