@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!sameClassAs(obj)) { return false; } GphotoVersion other = (GphotoVersion) obj; return eq(value, other.value); }
/** * Returns whether it has the version. * * @return whether it has the version */ public boolean hasValue() { return getValue() != null; }
/** * Immutable constructor. * * @param value version. */ public GphotoVersion(Long value) { super(); setValue(value); setImmutable(true); }
public void setVersion(Long version) { GphotoVersion ext = null; if (version != null) { ext = new GphotoVersion(version); } setVersionExt(ext); }
/** * Sets the version. * * @param value version 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, GphotoVersion.getDefaultDescription(false, false)); declare(extProfile, GphotoPosition.getDefaultDescription(false, false)); declare(extProfile, GphotoWidth.getDefaultDescription(false, false)); declare(extProfile, GphotoHeight.getDefaultDescription(false, false)); declare(extProfile, GphotoRotation.getDefaultDescription(false, false)); declare(extProfile, GphotoSize.getDefaultDescription(false, false)); declare(extProfile, GphotoAlbumId.getDefaultDescription(false, false)); declare(extProfile, GphotoAccess.getDefaultDescription(false, false)); declare(extProfile, GphotoClient.getDefaultDescription(false, false)); declare(extProfile, GphotoChecksum.getDefaultDescription(false, false)); declare(extProfile, GphotoTimestamp.getDefaultDescription(false, false)); declare(extProfile, GphotoStreamId.getDefaultDescription(false, false)); declare(extProfile, GphotoVideoStatus.getDefaultDescription(false, false)); declare(extProfile, ExifTags.getDefaultDescription()); new ExifTags().declareExtensions(extProfile); declare(extProfile, GphotoCommentsEnabled.getDefaultDescription(false, false)); declare(extProfile, GphotoCommentCount.getDefaultDescription(false, false)); pointData.declareExtensions(extProfile); boundingBoxData.declareExtensions(extProfile); mediaData.declareExtensions(extProfile); }
public void setVersion(Long version) { GphotoVersion ext = null; if (version != null) { ext = new GphotoVersion(version); } setVersionExt(ext); }
/** * Sets the version. * * @param value version 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, GphotoVersion.getDefaultDescription(false, false)); declare(extProfile, GphotoPosition.getDefaultDescription(false, false)); declare(extProfile, GphotoWidth.getDefaultDescription(false, false)); declare(extProfile, GphotoHeight.getDefaultDescription(false, false)); declare(extProfile, GphotoRotation.getDefaultDescription(false, false)); declare(extProfile, GphotoSize.getDefaultDescription(false, false)); declare(extProfile, GphotoAlbumId.getDefaultDescription(false, false)); declare(extProfile, GphotoAccess.getDefaultDescription(false, false)); declare(extProfile, GphotoClient.getDefaultDescription(false, false)); declare(extProfile, GphotoChecksum.getDefaultDescription(false, false)); declare(extProfile, GphotoTimestamp.getDefaultDescription(false, false)); declare(extProfile, GphotoStreamId.getDefaultDescription(false, false)); declare(extProfile, GphotoVideoStatus.getDefaultDescription(false, false)); declare(extProfile, ExifTags.getDefaultDescription()); new ExifTags().declareExtensions(extProfile); 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 version. */ public GphotoVersion(Long value) { super(); setValue(value); setImmutable(true); }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!sameClassAs(obj)) { return false; } GphotoVersion other = (GphotoVersion) obj; return eq(value, other.value); }
/** * Returns whether it has the version. * * @return whether it has the version */ public boolean hasValue() { return getValue() != null; }
/** * Set the version of the photo this item is about. * * @param version the version of the photo. */ public void setVersion(Long version) { if (version != null) { setExtension(new GphotoVersion(version)); } else { removeExtension(GphotoVersion.class); } }
/** * @return the gphoto:version on the item. */ public Long getVersion() { GphotoVersion ext = getExtension(GphotoVersion.class); return ext == null ? null : ext.getValue(); }
/** * Set the version of the photo this item is about. * * @param version the version of the photo. */ public void setVersion(Long version) { if (version != null) { setExtension(new GphotoVersion(version)); } else { removeExtension(GphotoVersion.class); } }
/** * @return the gphoto:version on the item. */ public Long getVersion() { GphotoVersion ext = getExtension(GphotoVersion.class); return ext == null ? null : ext.getValue(); }
/** * @throws ServiceException no longer, but used to. */ public Long getVersion() throws ServiceException { GphotoVersion ext = getVersionExt(); return ext == null ? null : ext.getValue(); }
/** * @throws ServiceException no longer, but used to. */ public Long getVersion() throws ServiceException { GphotoVersion ext = getVersionExt(); return ext == null ? null : ext.getValue(); }