@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!sameClassAs(obj)) { return false; } GphotoCommentsEnabled other = (GphotoCommentsEnabled) obj; return eq(value, other.value); }
/** * Returns whether it has the whether the album allows comments. * * @return whether it has the whether the album allows comments */ public boolean hasValue() { return getValue() != null; }
/** * Immutable constructor. * * @param value whether the album allows comments. */ public GphotoCommentsEnabled(Boolean value) { super(); setValue(value); setImmutable(true); }
public void setCommentsEnabled(Boolean commentsEnabled) { GphotoCommentsEnabled ext = null; if (commentsEnabled != null) { ext = new GphotoCommentsEnabled(commentsEnabled); } setCommentsEnabledExt(ext); }
/** * Sets the whether the album allows comments. * * @param value whether the album allows comments or <code>null</code> to * reset */ public void setValue(Boolean value) { throwExceptionIfImmutable(); this.value = value; }
public void setCommentsEnabled(Boolean commentsEnabled) { GphotoCommentsEnabled ext = null; if (commentsEnabled != null) { ext = new GphotoCommentsEnabled(commentsEnabled); } setCommentsEnabledExt(ext); }
/** * Sets the whether the album allows comments. * * @param value whether the album allows comments or <code>null</code> to * reset */ public void setValue(Boolean value) { throwExceptionIfImmutable(); this.value = value; }
/** * Returns whether it has the whether the album allows comments. * * @return whether it has the whether the album allows comments */ public boolean hasValue() { return getValue() != null; }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!sameClassAs(obj)) { return false; } GphotoCommentsEnabled other = (GphotoCommentsEnabled) obj; return eq(value, other.value); }
public void setCommentsEnabled(Boolean commentsEnabled) { GphotoCommentsEnabled enabledExt = null; if (commentsEnabled != null) { enabledExt = new GphotoCommentsEnabled(commentsEnabled); } setCommentsEnabledExt(enabledExt); }
/** * Immutable constructor. * * @param value whether the album allows comments. */ public GphotoCommentsEnabled(Boolean value) { super(); setValue(value); setImmutable(true); }
/** * @throws ServiceException no longer, but used to. */ public Boolean getCommentsEnabled() throws ServiceException { GphotoCommentsEnabled ext = getCommentsEnabledExt(); return ext == null ? null : ext.getValue(); }
public void setCommentsEnabled(Boolean commentsEnabled) { GphotoCommentsEnabled enabledExt = null; if (commentsEnabled != null) { enabledExt = new GphotoCommentsEnabled(commentsEnabled); } setCommentsEnabledExt(enabledExt); }
/** * @return true if comments are enabled in this album the entry represents. */ public Boolean getCommentsEnabled() { GphotoCommentsEnabled left = getExtension(GphotoCommentsEnabled.class); return left == null ? null : left.getValue(); }
/** * Set the whether comments are enabled in the album this entry represents. * * @param commentsEnabled true if comments are enabled in the album. */ public void setCommentsEnabled(Boolean commentsEnabled) { if (commentsEnabled != null) { setExtension(new GphotoCommentsEnabled(commentsEnabled)); } else { removeExtension(GphotoCommentsEnabled.class); } }
/** * @throws ServiceException no longer, but used to. */ public Boolean getCommentsEnabled() throws ServiceException { GphotoCommentsEnabled ext = getCommentsEnabledExt(); return ext == null ? null : ext.getValue(); }
/** * Set the whether comments are enabled in the photo this item represents. * * @param commentsEnabled true if comments are enabled in the photo. */ public void setCommentsEnabled(Boolean commentsEnabled) { if (commentsEnabled != null) { setExtension(new GphotoCommentsEnabled(commentsEnabled)); } else { removeExtension(GphotoCommentsEnabled.class); } }
public Boolean getCommentsEnabled() { GphotoCommentsEnabled commentsEnabled = getCommentsEnabledExt(); return commentsEnabled == null ? null : commentsEnabled.getValue(); }
/** * Set the whether comments are enabled in the photo this item represents. * * @param commentsEnabled true if comments are enabled in the photo. */ public void setCommentsEnabled(Boolean commentsEnabled) { if (commentsEnabled != null) { setExtension(new GphotoCommentsEnabled(commentsEnabled)); } else { removeExtension(GphotoCommentsEnabled.class); } }
/** * @return true if comments are enabled in the photo the item represents. */ public Boolean getCommentsEnabled() { GphotoCommentsEnabled ext = getExtension(GphotoCommentsEnabled.class); return ext == null ? null : ext.getValue(); }