com.antelmann.genealogy
Class GEventImpl
java.lang.Object
com.antelmann.genealogy.GEventImpl
- All Implemented Interfaces:
- Timed, Taggable<GTag>, GEvent, GeoEncoded, LifeCycleObject, Serializable
- Direct Known Subclasses:
- GEventEntry
public class GEventImpl
- extends Object
- implements GEvent
implements an event within this context
- Since:
- 21.05.2013, 15:35:37
- Author:
- holger
- See Also:
- Serialized Form
GEventImpl
public GEventImpl(String title,
long time)
getBeginTime
public Date getBeginTime()
- Specified by:
getBeginTime in interface LifeCycleObject
getEndTime
public Date getEndTime()
- Specified by:
getEndTime in interface LifeCycleObject
setEndTime
public void setEndTime(Date endTime)
getTime
public long getTime()
- Specified by:
getTime in interface Timed
getDate
public Date getDate()
getTitle
public String getTitle()
- Specified by:
getTitle in interface GEvent
setTitle
public void setTitle(String title)
getLocation
public String getLocation()
setLocation
public void setLocation(String location)
getGeoPoint
public GeoPoint getGeoPoint()
- Specified by:
getGeoPoint in interface GeoEncoded
setGeoPoint
public void setGeoPoint(GeoPoint geoPoint)
add
public boolean add(GTag tag)
throws IllegalArgumentException
- Description copied from interface:
Taggable
- makes this instance member of the given group
- Specified by:
add in interface Taggable<GTag>
- Parameters:
tag - the Group object that this instance is to become a member of
- Returns:
- true only if the group was actually added to this instance
or false if it already was a member of that group
- Throws:
IllegalArgumentException - if this instance cannot be part of the given group
getTags
public Collection<GTag> getTags()
- Description copied from interface:
Taggable
- lists all groups that this instance is currently a member of (the data is essentially derived from a set)
- Specified by:
getTags in interface Taggable<GTag>
isTagged
public boolean isTagged(GTag tag)
- Description copied from interface:
Taggable
- allows to determine the membership of the given tag or group
- Specified by:
isTagged in interface Taggable<GTag>
remove
public boolean remove(GTag tag)
- Description copied from interface:
Taggable
- terminates the membership of this instance to the given group
- Specified by:
remove in interface Taggable<GTag>
- Parameters:
tag - the Group that this instance is to be removed from as a member
- Returns:
- true only if this instance was previously a member of the given group.
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
equals
public boolean equals(Object obj)
- Overrides:
equals in class Object
(c) Holger Antelmann since 2001- all rights reserved (contact: info@antelmann.com)
see www.antelmann.com/developer for further details and available downloads