@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!sameClassAs(obj)) { return false; } GphotoPosition other = (GphotoPosition) obj; return eq(value, other.value); }
/** * Returns whether it has the position in album. * * @return whether it has the position in album */ public boolean hasValue() { return getValue() != null; }
/** * Immutable constructor. * * @param value position in album. */ public GphotoPosition(Float value) { super(); setValue(value); setImmutable(true); }
public void setPosition(Float position) { GphotoPosition ext = null; if (position != null) { ext = new GphotoPosition(position); } setPositionExt(ext); }
/** * Sets the position in album. * * @param value position in album or <code>null</code> to reset */ public void setValue(Float 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 setPosition(Float position) { GphotoPosition ext = null; if (position != null) { ext = new GphotoPosition(position); } setPositionExt(ext); }
/** * Sets the position in album. * * @param value position in album or <code>null</code> to reset */ public void setValue(Float 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 position in album. */ public GphotoPosition(Float value) { super(); setValue(value); setImmutable(true); }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!sameClassAs(obj)) { return false; } GphotoPosition other = (GphotoPosition) obj; return eq(value, other.value); }
/** * Returns whether it has the position in album. * * @return whether it has the position in album */ public boolean hasValue() { return getValue() != null; }
/** * Set the position of the photo this item is about. This is the photo's * position in the album it is in (in the context of the feed). * * @param position the position of the photo in the album. */ public void setPosition(Float position) { if (position != null) { setExtension(new GphotoPosition(position)); } else { removeExtension(GphotoPosition.class); } }
/** * @return the gphoto:position of the photo. */ public Float getPosition() { GphotoPosition ext = getExtension(GphotoPosition.class); return ext == null ? null : ext.getValue(); }
/** * Set the position of the photo this item is about. This is the photo's * position in the album it is in (in the context of the feed). * * @param position the position of the photo in the album. */ public void setPosition(Float position) { if (position != null) { setExtension(new GphotoPosition(position)); } else { removeExtension(GphotoPosition.class); } }
/** * @return the gphoto:position of the photo. */ public Float getPosition() { GphotoPosition ext = getExtension(GphotoPosition.class); return ext == null ? null : ext.getValue(); }
/** * @throws ServiceException no longer, but used to. */ public Float getPosition() throws ServiceException { GphotoPosition ext = getPositionExt(); return ext == null ? null : ext.getValue(); }
/** * @throws ServiceException no longer, but used to. */ public Float getPosition() throws ServiceException { GphotoPosition ext = getPositionExt(); return ext == null ? null : ext.getValue(); }