@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!sameClassAs(obj)) { return false; } GphotoFeaturedDate other = (GphotoFeaturedDate) obj; return eq(value, other.value); }
/** * Returns whether it has the featured date. * * @return whether it has the featured date */ public boolean hasValue() { return getValue() != null; }
/** * Immutable constructor. * * @param value featured date. */ public GphotoFeaturedDate(Long value) { super(); setValue(value); setImmutable(true); }
public void setFeaturedDate(Date featuredDate) { GphotoFeaturedDate ext = null; if (featuredDate != null) { ext = new GphotoFeaturedDate(featuredDate); } setFeaturedDateExt(ext); }
/** * Sets the featured date. * * @param value featured date or <code>null</code> to reset */ public void setValue(Long value) { throwExceptionIfImmutable(); this.value = value; }
public void setFeaturedDate(Date featuredDate) { GphotoFeaturedDate ext = null; if (featuredDate != null) { ext = new GphotoFeaturedDate(featuredDate); } setFeaturedDateExt(ext); }
/** * Sets the featured date. * * @param value featured date or <code>null</code> to reset */ public void setValue(Long value) { throwExceptionIfImmutable(); this.value = value; }
/** * Immutable constructor. * * @param value featured date. */ public GphotoFeaturedDate(Long value) { super(); setValue(value); setImmutable(true); }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!sameClassAs(obj)) { return false; } GphotoFeaturedDate other = (GphotoFeaturedDate) obj; return eq(value, other.value); }
/** * Returns whether it has the featured date. * * @return whether it has the featured date */ public boolean hasValue() { return getValue() != null; }
/** * Sets the date that the photo was featured. * @param featuredDate the date that the photo was featured. */ public void setFeaturedDate(Date featuredDate) { if (featuredDate != null) { setExtension(new GphotoFeaturedDate(featuredDate)); } else { removeExtension(GphotoFeaturedDate.class); } }
/** * @return date that the photo was featured. */ public Date getFeaturedDate() { GphotoFeaturedDate ext = getExtension(GphotoFeaturedDate.class); return ext == null ? null : new Date(ext.getValue()); }
/** * Sets the date that the photo was featured. * @param featuredDate the date that the photo was featured. */ public void setFeaturedDate(Date featuredDate) { if (featuredDate != null) { setExtension(new GphotoFeaturedDate(featuredDate)); } else { removeExtension(GphotoFeaturedDate.class); } }
/** * @return date that the photo was featured. */ public Date getFeaturedDate() { GphotoFeaturedDate ext = getExtension(GphotoFeaturedDate.class); return ext == null ? null : new Date(ext.getValue()); }
/** * @return date that the photo was featured. */ public Date getFeaturedDate() { GphotoFeaturedDate ext = getExtension(GphotoFeaturedDate.class); return ext == null ? null : new Date(ext.getValue()); }
/** * @return date that the photo was featured. */ public Date getFeaturedDate() { GphotoFeaturedDate ext = getExtension(GphotoFeaturedDate.class); return ext == null ? null : new Date(ext.getValue()); }