org.polliwog.data
Class VisitedSiteArea
java.lang.Object
org.polliwog.data.VisitedSiteArea
- All Implemented Interfaces:
- java.lang.Comparable
public class VisitedSiteArea
- extends java.lang.Object
- implements java.lang.Comparable
Method Summary |
int |
compareTo(java.lang.Object o)
This overridden method intentionally breaks the compareTo contract by allowing
comparison against the SiteArea class, "strictly" speaking they aren't
comparable but since this class holds a SiteArea instance they can be reasonably
compared. |
boolean |
equals(java.lang.Object o)
|
long |
getEnd()
|
SiteArea |
getSiteArea()
|
long |
getStart()
|
long |
getVisitTime()
|
int |
hashCode()
|
void |
setEnd(java.util.Date d)
|
void |
setStart(java.util.Date d)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
VisitedSiteArea
public VisitedSiteArea(SiteArea sa)
getVisitTime
public long getVisitTime()
getStart
public long getStart()
setStart
public void setStart(java.util.Date d)
getSiteArea
public SiteArea getSiteArea()
getEnd
public long getEnd()
setEnd
public void setEnd(java.util.Date d)
compareTo
public int compareTo(java.lang.Object o)
- This overridden method intentionally breaks the compareTo contract by allowing
comparison against the
SiteArea
class, "strictly" speaking they aren't
comparable but since this class holds a SiteArea instance they can be reasonably
compared.
- Specified by:
compareTo
in interface java.lang.Comparable
- Parameters:
o
- A SiteArea
or VisitedSiteArea
object.
- Returns:
- A value indicating whether this class is equal to, less than or greater than
the passed in value.
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in class java.lang.Object
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
Copyright © 2007 Gary Bentley. All Rights Reserved.