@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!sameClassAs(obj)) { return false; } GphotoMaxPhotos other = (GphotoMaxPhotos) obj; return eq(value, other.value); }
/** * Returns whether it has the maxPhotos. * * @return whether it has the maxPhotos */ public boolean hasValue() { return getValue() != null; }
/** * Immutable constructor. * * @param value maxPhotos. */ public GphotoMaxPhotos(Integer value) { super(); setValue(value); setImmutable(true); }
public void setMaxPhotos(Integer max) { GphotoMaxPhotos ext = null; if (max != null) { ext = new GphotoMaxPhotos(max); } setMaxPhotosExt(ext); }
@Override public void declareExtensions(ExtensionProfile extProfile) { super.declareExtensions(extProfile); declare(extProfile, GphotoUsername.getDefaultDescription(false, false)); declare(extProfile, GphotoNickname.getDefaultDescription(false, false)); declare(extProfile, GphotoThumbnail.getDefaultDescription(false, false)); declare(extProfile, GphotoQuotaUsed.getDefaultDescription(false, false)); declare(extProfile, GphotoQuotaLimit.getDefaultDescription(false, false)); declare(extProfile, GphotoMaxPhotos.getDefaultDescription(false, false)); }
/** * Sets the maxPhotos. * * @param value maxPhotos or <code>null</code> to reset */ public void setValue(Integer value) { throwExceptionIfImmutable(); this.value = value; }
public void setMaxPhotos(Integer max) { GphotoMaxPhotos ext = null; if (max != null) { ext = new GphotoMaxPhotos(max); } setMaxPhotosExt(ext); }
@Override public void declareExtensions(ExtensionProfile extProfile) { super.declareExtensions(extProfile); declare(extProfile, GphotoUsername.getDefaultDescription(false, false)); declare(extProfile, GphotoNickname.getDefaultDescription(false, false)); declare(extProfile, GphotoThumbnail.getDefaultDescription(false, false)); declare(extProfile, GphotoQuotaUsed.getDefaultDescription(false, false)); declare(extProfile, GphotoQuotaLimit.getDefaultDescription(false, false)); declare(extProfile, GphotoMaxPhotos.getDefaultDescription(false, false)); }
/** * Sets the maxPhotos. * * @param value maxPhotos or <code>null</code> to reset */ public void setValue(Integer value) { throwExceptionIfImmutable(); this.value = value; }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!sameClassAs(obj)) { return false; } GphotoMaxPhotos other = (GphotoMaxPhotos) obj; return eq(value, other.value); }
/** * Immutable constructor. * * @param value maxPhotos. */ public GphotoMaxPhotos(Integer value) { super(); setValue(value); setImmutable(true); }
/** * Returns whether it has the maxPhotos. * * @return whether it has the maxPhotos */ public boolean hasValue() { return getValue() != null; }
/** * Set the maximum number of photos the user is allowed. * * @param max the number of photos the user is allowed. */ public void setMaxPhotos(Integer max) { if (max != null) { setExtension(new GphotoMaxPhotos(max)); } else { removeExtension(GphotoMaxPhotos.class); } } }
/** * @return the maximum number of photos the user can have in an album. */ public Integer getMaxPhotos() { GphotoMaxPhotos ext = getExtension(GphotoMaxPhotos.class); return ext == null ? null : ext.getValue(); }
/** * Set the maximum number of photos the user is allowed. * * @param max the number of photos the user is allowed. */ public void setMaxPhotos(Integer max) { if (max != null) { setExtension(new GphotoMaxPhotos(max)); } else { removeExtension(GphotoMaxPhotos.class); } } }
/** * @return the maximum number of photos the user can have in an album. */ public Integer getMaxPhotos() { GphotoMaxPhotos ext = getExtension(GphotoMaxPhotos.class); return ext == null ? null : ext.getValue(); }
public Integer getMaxPhotos() { GphotoMaxPhotos ext = getMaxPhotosExt(); return ext == null ? null : ext.getValue(); }
public Integer getMaxPhotos() { GphotoMaxPhotos ext = getMaxPhotosExt(); return ext == null ? null : ext.getValue(); }