@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!sameClassAs(obj)) { return false; } GphotoViewCount other = (GphotoViewCount) obj; return eq(value, other.value); }
/** * Returns whether it has the view count. * * @return whether it has the view count */ public boolean hasValue() { return getValue() != null; }
/** * Immutable constructor. * * @param value view count. */ public GphotoViewCount(Long value) { super(); setValue(value); setImmutable(true); }
public void setViewCount(Long viewCount) { GphotoViewCount ext = null; if (viewCount != null) { ext = new GphotoViewCount(viewCount); } setViewCountExt(ext); }
/** * Sets the view count. * * @param value view count or <code>null</code> to reset */ public void setValue(Long value) { throwExceptionIfImmutable(); this.value = value; }
public void setViewCount(Long viewCount) { GphotoViewCount ext = null; if (viewCount != null) { ext = new GphotoViewCount(viewCount); } setViewCountExt(ext); }
/** * Sets the view count. * * @param value view count or <code>null</code> to reset */ public void setValue(Long value) { throwExceptionIfImmutable(); this.value = value; }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!sameClassAs(obj)) { return false; } GphotoViewCount other = (GphotoViewCount) obj; return eq(value, other.value); }
/** * Immutable constructor. * * @param value view count. */ public GphotoViewCount(Long value) { super(); setValue(value); setImmutable(true); }
/** * Returns whether it has the view count. * * @return whether it has the view count */ public boolean hasValue() { return getValue() != null; }
/** * Sets the view count for this photo. * @param viewCount the number of views for this photo. */ public void setViewCount(Long viewCount) { if (viewCount != null) { setExtension(new GphotoViewCount(viewCount)); } else { removeExtension(GphotoViewCount.class); } }
/** * @return the number of views for this photo. */ public Long getViewCount() { GphotoViewCount ext = getExtension(GphotoViewCount.class); return ext == null ? null : ext.getValue(); }
/** * Sets the view count for this photo. * @param viewCount the number of views for this photo. */ public void setViewCount(Long viewCount) { if (viewCount != null) { setExtension(new GphotoViewCount(viewCount)); } else { removeExtension(GphotoViewCount.class); } }
/** * @return the number of views for this photo. */ public Long getViewCount() { GphotoViewCount ext = getExtension(GphotoViewCount.class); return ext == null ? null : ext.getValue(); }
/** * @return the number of views for this photo. */ public Long getViewCount() { GphotoViewCount ext = getExtension(GphotoViewCount.class); return ext == null ? null : ext.getValue(); }
/** * @return the number of views for this photo. */ public Long getViewCount() { GphotoViewCount ext = getExtension(GphotoViewCount.class); return ext == null ? null : ext.getValue(); }