@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!sameClassAs(obj)) { return false; } GphotoBytesUsed other = (GphotoBytesUsed) obj; return eq(value, other.value); }
/** * Returns whether it has the number of bytes used. * * @return whether it has the number of bytes used */ public boolean hasValue() { return getValue() != null; }
/** * Immutable constructor. * * @param value number of bytes used. */ public GphotoBytesUsed(Long value) { super(); setValue(value); setImmutable(true); }
public void setBytesUsed(Long bytesUsed) { GphotoBytesUsed usedExt = null; if (bytesUsed != null) { usedExt = new GphotoBytesUsed(bytesUsed); } setBytesUsedExt(usedExt); }
/** * Sets the number of bytes used. * * @param value number of bytes used or <code>null</code> to reset */ public void setValue(Long value) { throwExceptionIfImmutable(); this.value = value; }
@Override @SuppressWarnings("deprecation") public void declareExtensions(ExtensionProfile extProfile) { super.declareExtensions(extProfile); declare(extProfile, PheedThumbnail.getDefaultDescription()); declare(extProfile, PheedImageUrl.getDefaultDescription()); declare(extProfile, GphotoName.getDefaultDescription(false, false)); declare(extProfile, GphotoLocation.getDefaultDescription(false, false)); declare(extProfile, GphotoTimestamp.getDefaultDescription(false, false)); declare(extProfile, GphotoAccess.getDefaultDescription(false, false)); declare(extProfile, GphotoPhotosUsed.getDefaultDescription(false, false)); declare(extProfile, GphotoPhotosLeft.getDefaultDescription(false, false)); declare(extProfile, GphotoBytesUsed.getDefaultDescription(false, false)); declare(extProfile, GphotoUsername.getDefaultDescription(false, false)); declare(extProfile, GphotoNickname.getDefaultDescription(false, false)); declare(extProfile, GphotoCommentsEnabled.getDefaultDescription(false, false)); declare(extProfile, GphotoCommentCount.getDefaultDescription(false, false)); pointData.declareExtensions(extProfile); boundingBoxData.declareExtensions(extProfile); mediaData.declareExtensions(extProfile); }
public void setBytesUsed(Long bytesUsed) { GphotoBytesUsed usedExt = null; if (bytesUsed != null) { usedExt = new GphotoBytesUsed(bytesUsed); } setBytesUsedExt(usedExt); }
/** * Sets the number of bytes used. * * @param value number of bytes used or <code>null</code> to reset */ public void setValue(Long value) { throwExceptionIfImmutable(); this.value = value; }
@Override @SuppressWarnings("deprecation") public void declareExtensions(ExtensionProfile extProfile) { super.declareExtensions(extProfile); declare(extProfile, PheedThumbnail.getDefaultDescription()); declare(extProfile, PheedImageUrl.getDefaultDescription()); declare(extProfile, GphotoName.getDefaultDescription(false, false)); declare(extProfile, GphotoLocation.getDefaultDescription(false, false)); declare(extProfile, GphotoTimestamp.getDefaultDescription(false, false)); declare(extProfile, GphotoAccess.getDefaultDescription(false, false)); declare(extProfile, GphotoPhotosUsed.getDefaultDescription(false, false)); declare(extProfile, GphotoPhotosLeft.getDefaultDescription(false, false)); declare(extProfile, GphotoBytesUsed.getDefaultDescription(false, false)); declare(extProfile, GphotoUsername.getDefaultDescription(false, false)); declare(extProfile, GphotoNickname.getDefaultDescription(false, false)); declare(extProfile, GphotoCommentsEnabled.getDefaultDescription(false, false)); declare(extProfile, GphotoCommentCount.getDefaultDescription(false, false)); pointData.declareExtensions(extProfile); boundingBoxData.declareExtensions(extProfile); mediaData.declareExtensions(extProfile); }
/** * Immutable constructor. * * @param value number of bytes used. */ public GphotoBytesUsed(Long value) { super(); setValue(value); setImmutable(true); }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!sameClassAs(obj)) { return false; } GphotoBytesUsed other = (GphotoBytesUsed) obj; return eq(value, other.value); }
/** * Returns whether it has the number of bytes used. * * @return whether it has the number of bytes used */ public boolean hasValue() { return getValue() != null; }
/** * Set the number of bytes used in the album this entry represents. * * @param bytesUsed the number of bytes used. */ public void setBytesUsed(Long bytesUsed) { if (bytesUsed != null) { setExtension(new GphotoBytesUsed(bytesUsed)); } else { removeExtension(GphotoBytesUsed.class); } }
/** * @return the number of bytes used in the album this entry represents. */ public Long getBytesUsed() { GphotoBytesUsed used = getExtension(GphotoBytesUsed.class); return used == null ? null : used.getValue(); }
/** * Set the number of bytes used in the album this entry represents. * * @param bytesUsed the number of bytes used. */ public void setBytesUsed(Long bytesUsed) { if (bytesUsed != null) { setExtension(new GphotoBytesUsed(bytesUsed)); } else { removeExtension(GphotoBytesUsed.class); } }
/** * @return the number of bytes used in the album this entry represents. */ public Long getBytesUsed() { GphotoBytesUsed used = getExtension(GphotoBytesUsed.class); return used == null ? null : used.getValue(); }
public Long getBytesUsed() { GphotoBytesUsed bytesUsed = getBytesUsedExt(); return bytesUsed == null ? null : bytesUsed.getValue(); }
public Long getBytesUsed() { GphotoBytesUsed bytesUsed = getBytesUsedExt(); return bytesUsed == null ? null : bytesUsed.getValue(); }