@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!sameClassAs(obj)) { return false; } GphotoStarred other = (GphotoStarred) obj; return eq(total, other.total) && eq(value, other.value); }
/** * Returns whether it has the number of stars. * * @return whether it has the number of stars */ public boolean hasTotal() { return getTotal() != null; }
/** * Returns whether it has the viewer starred photo. * * @return whether it has the viewer starred photo */ public boolean hasValue() { return getValue() != null; }
/** * Immutable constructor. * * @param total number of stars. * @param value viewer starred photo. */ public GphotoStarred(Integer total, Boolean value) { super(); setTotal(total); setValue(value); setImmutable(true); }
public void setTotalStars(Integer totalStars) { GphotoStarred ext = getStarredExt(); if (ext == null) { ext = new GphotoStarred(); setStarredExt(ext); } ext.setTotal(totalStars); }
public void setStarred(Boolean starred) { GphotoStarred ext = getStarredExt(); if (ext == null) { ext = new GphotoStarred(); setStarredExt(ext); } ext.setValue(starred); }
/** * Sets the viewer starred photo. * * @param value viewer starred photo or <code>null</code> to reset */ public void setValue(Boolean value) { throwExceptionIfImmutable(); this.value = value; }
/** * Immutable constructor. * * @param total number of stars. * @param value viewer starred photo. */ public GphotoStarred(Integer total, Boolean value) { super(); setTotal(total); setValue(value); setImmutable(true); }
public void setTotalStars(Integer totalStars) { GphotoStarred ext = getStarredExt(); if (ext == null) { ext = new GphotoStarred(); setStarredExt(ext); } ext.setTotal(totalStars); }
public void setStarred(Boolean starred) { GphotoStarred ext = getExtension(GphotoStarred.class); if (ext == null) { ext = new GphotoStarred(); setExtension(ext); } ext.setValue(starred); }
/** * Sets the viewer starred photo. * * @param value viewer starred photo or <code>null</code> to reset */ public void setValue(Boolean value) { throwExceptionIfImmutable(); this.value = value; }
public void setTotalStars(Integer totalStars) { GphotoStarred ext = getExtension(GphotoStarred.class); if (ext == null) { ext = new GphotoStarred(); setExtension(ext); } ext.setTotal(totalStars); }
public void setStarred(Boolean starred) { GphotoStarred ext = getStarredExt(); if (ext == null) { ext = new GphotoStarred(); setStarredExt(ext); } ext.setValue(starred); }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!sameClassAs(obj)) { return false; } GphotoStarred other = (GphotoStarred) obj; return eq(total, other.total) && eq(value, other.value); }
/** * Returns whether it has the number of stars. * * @return whether it has the number of stars */ public boolean hasTotal() { return getTotal() != null; }
/** * Returns whether it has the viewer starred photo. * * @return whether it has the viewer starred photo */ public boolean hasValue() { return getValue() != null; }
/** * Sets the number of stars. * * @param total number of stars or <code>null</code> to reset */ public void setTotal(Integer total) { throwExceptionIfImmutable(); this.total = total; }
public void setTotalStars(Integer totalStars) { GphotoStarred ext = getExtension(GphotoStarred.class); if (ext == null) { ext = new GphotoStarred(); setExtension(ext); } ext.setTotal(totalStars); }
public void setStarred(Boolean starred) { GphotoStarred ext = getExtension(GphotoStarred.class); if (ext == null) { ext = new GphotoStarred(); setExtension(ext); } ext.setValue(starred); }
public Integer getTotalStars() { GphotoStarred ext = getExtension(GphotoStarred.class); return ext == null ? null : ext.getTotal(); }