@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!sameClassAs(obj)) { return false; } GphotoQuotaUsed other = (GphotoQuotaUsed) obj; return eq(value, other.value); }
/** * Returns whether it has the currentQuota. * * @return whether it has the currentQuota */ public boolean hasValue() { return getValue() != null; }
/** * Immutable constructor. * * @param value currentQuota. */ public GphotoQuotaUsed(Long value) { super(); setValue(value); setImmutable(true); }
public void setQuotaUsed(Long quota) { GphotoQuotaUsed ext = null; if (quota != null) { ext = new GphotoQuotaUsed(quota); } setQuotaUsedExt(ext); }
/** * Sets the currentQuota. * * @param value currentQuota or <code>null</code> to reset */ public void setValue(Long value) { throwExceptionIfImmutable(); this.value = value; }
@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)); }
public void setQuotaUsed(Long quota) { GphotoQuotaUsed ext = null; if (quota != null) { ext = new GphotoQuotaUsed(quota); } setQuotaUsedExt(ext); }
/** * Sets the currentQuota. * * @param value currentQuota or <code>null</code> to reset */ public void setValue(Long value) { throwExceptionIfImmutable(); this.value = value; }
@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)); }
/** * Immutable constructor. * * @param value currentQuota. */ public GphotoQuotaUsed(Long value) { super(); setValue(value); setImmutable(true); }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!sameClassAs(obj)) { return false; } GphotoQuotaUsed other = (GphotoQuotaUsed) obj; return eq(value, other.value); }
/** * Returns whether it has the currentQuota. * * @return whether it has the currentQuota */ public boolean hasValue() { return getValue() != null; }
/** * Set the used quota for the user. * * @param quota the quota usage in bytes for this user. */ public void setQuotaUsed(Long quota) { if (quota != null) { setExtension(new GphotoQuotaUsed(quota)); } else { removeExtension(GphotoQuotaUsed.class); } }
public Long getQuotaUsed() { GphotoQuotaUsed ext = getQuotaUsedExt(); return ext == null ? null : ext.getValue(); }
/** * Set the used quota for the user. * * @param quota the quota usage in bytes for this user. */ public void setQuotaUsed(Long quota) { if (quota != null) { setExtension(new GphotoQuotaUsed(quota)); } else { removeExtension(GphotoQuotaUsed.class); } }
/** * @return the quota used up for this user. */ public Long getQuotaUsed() { GphotoQuotaUsed ext = getExtension(GphotoQuotaUsed.class); return ext == null ? null : ext.getValue(); }
/** * @return the quota used up for this user. */ public Long getQuotaUsed() { GphotoQuotaUsed ext = getExtension(GphotoQuotaUsed.class); return ext == null ? null : ext.getValue(); }
public Long getQuotaUsed() { GphotoQuotaUsed ext = getQuotaUsedExt(); return ext == null ? null : ext.getValue(); }