@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!sameClassAs(obj)) { return false; } GphotoHeight other = (GphotoHeight) obj; return eq(value, other.value); }
/** * Returns whether it has the height. * * @return whether it has the height */ public boolean hasValue() { return getValue() != null; }
/** * Immutable constructor. * * @param value height. */ public GphotoHeight(Long value) { super(); setValue(value); setImmutable(true); }
public void setHeight(Long height) { GphotoHeight ext = null; if (height != null) { ext = new GphotoHeight(height); } setHeightExt(ext); }
/** * Sets the height. * * @param value height 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 setHeight(Long height) { GphotoHeight ext = null; if (height != null) { ext = new GphotoHeight(height); } setHeightExt(ext); }
/** * Sets the height. * * @param value height 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); }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!sameClassAs(obj)) { return false; } GphotoHeight other = (GphotoHeight) obj; return eq(value, other.value); }
/** * Immutable constructor. * * @param value height. */ public GphotoHeight(Long value) { super(); setValue(value); setImmutable(true); }
/** * Returns whether it has the height. * * @return whether it has the height */ public boolean hasValue() { return getValue() != null; }
/** * Set the height of the photo the item is about. * * @param height the height of the photo. */ public void setHeight(Long height) { if (height != null) { setExtension(new GphotoHeight(height)); } else { removeExtension(GphotoHeight.class); } }
/** * @throws ServiceException no longer, but used to. */ public Long getHeight() throws ServiceException { GphotoHeight ext = getHeightExt(); return ext == null ? null : ext.getValue(); }
/** * Set the height of the photo the item is about. * * @param height the height of the photo. */ public void setHeight(Long height) { if (height != null) { setExtension(new GphotoHeight(height)); } else { removeExtension(GphotoHeight.class); } }
/** * @return the gphoto:height of the photo. */ public Long getHeight() { GphotoHeight ext = getExtension(GphotoHeight.class); return ext == null ? null : ext.getValue(); }
/** * @return the gphoto:height of the photo. */ public Long getHeight() { GphotoHeight ext = getExtension(GphotoHeight.class); return ext == null ? null : ext.getValue(); }
/** * @throws ServiceException no longer, but used to. */ public Long getHeight() throws ServiceException { GphotoHeight ext = getHeightExt(); return ext == null ? null : ext.getValue(); }