@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!sameClassAs(obj)) { return false; } GphotoCommentCount other = (GphotoCommentCount) obj; return eq(value, other.value); }
/** * Returns whether it has the number of comments. * * @return whether it has the number of comments */ public boolean hasValue() { return getValue() != null; }
/** * Immutable constructor. * * @param value number of comments. */ public GphotoCommentCount(Integer value) { super(); setValue(value); setImmutable(true); }
public void setCommentCount(Integer commentCount) { GphotoCommentCount ext = null; if (commentCount != null) { ext = new GphotoCommentCount(commentCount); } setCommentCountExt(ext); }
@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); }
/** * Sets the number of comments. * * @param value number of comments or <code>null</code> to reset */ public void setValue(Integer value) { throwExceptionIfImmutable(); this.value = value; }
public void setCommentCount(Integer commentCount) { GphotoCommentCount countExt = null; if (commentCount != null) { countExt = new GphotoCommentCount(commentCount); } setCommentCountExt(countExt); }
@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); }
/** * Sets the number of comments. * * @param value number of comments or <code>null</code> to reset */ public void setValue(Integer value) { throwExceptionIfImmutable(); this.value = value; }
/** * Returns whether it has the number of comments. * * @return whether it has the number of comments */ public boolean hasValue() { return getValue() != null; }
public void setCommentCount(Integer commentCount) { GphotoCommentCount countExt = null; if (commentCount != null) { countExt = new GphotoCommentCount(commentCount); } setCommentCountExt(countExt); }
/** * Immutable constructor. * * @param value number of comments. */ public GphotoCommentCount(Integer value) { super(); setValue(value); setImmutable(true); }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!sameClassAs(obj)) { return false; } GphotoCommentCount other = (GphotoCommentCount) obj; return eq(value, other.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); }
/** * @return the comment count on the photo this item represents. */ public Integer getCommentCount() { GphotoCommentCount ext = getExtension(GphotoCommentCount.class); return ext == null ? null : ext.getValue(); }
public void setCommentCount(Integer commentCount) { GphotoCommentCount ext = null; if (commentCount != null) { ext = new GphotoCommentCount(commentCount); } setCommentCountExt(ext); }
@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); }
/** * @throws ServiceException no longer, but used to. */ public Integer getCommentCount() throws ServiceException { GphotoCommentCount ext = getCommentCountExt(); return ext == null ? null : ext.getValue(); }
/** * Set the number of comments on the photo this item represents. * * @param commentCount the number of comments on the photo. */ public void setCommentCount(Integer commentCount) { if (commentCount != null) { setExtension(new GphotoCommentCount(commentCount)); } else { removeExtension(GphotoCommentCount.class); } }
/** * @return the comment count on the photo this item represents. */ public Integer getCommentCount() { GphotoCommentCount ext = getExtension(GphotoCommentCount.class); return ext == null ? null : ext.getValue(); }