|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.webrenderer.HistoryPage
Represents a single page in the History list of a web browser.
Constructor Summary | |
HistoryPage(java.lang.String data)
Creates a HistoryPage with the URL passed as data. |
Method Summary | |
java.util.Date |
getDate()
Gets the date. |
java.lang.String |
getURL()
Gets the URL. |
boolean |
isNewer(HistoryPage p)
Returns true if the HistoryPage was accessed on a more recent date that the one being compared to, false otherwise. |
boolean |
isSame(HistoryPage p)
Compares two HistoryPage objects for equality. |
boolean |
sameDomain(HistoryPage p)
Compares two HistoryPage objects for the same domain. |
java.lang.String |
toString()
Gets the history in String format. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public HistoryPage(java.lang.String data)
data
- A URL.Method Detail |
public boolean isNewer(HistoryPage p)
p
- A HistoryPage
object to compare to.public boolean isSame(HistoryPage p)
p
- - A HistoryPage object to compare.
true
if the HistoryPage refers to the same
URL as the page passed in, false
otherwise.public boolean sameDomain(HistoryPage p)
HistoryPage
objects for the same domain.
p
- - A HistoryPage object to compare.
true
if the domain sections of the URL
stored in this HistoryPage and the passed
HistoryPage are the same, false
otherwise.public java.lang.String getURL()
public java.util.Date getDate()
public java.lang.String toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |