rice.email.log
Class SnapShotLogEntry
java.lang.Object
rice.post.log.LogEntry
rice.email.log.EmailLogEntry
rice.email.log.SnapShotLogEntry
-
All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable, PostData
-
public class SnapShotLogEntry
- extends EmailLogEntry
Serves as a summary of the log chain up to the current point. Lets
the email reader display the current emails without having to read
through the entire chain.
- Author:
- Joe Montgomery
- See Also:
- Serialized Form
Methods inherited from class rice.post.log.LogEntry |
buildContentHashReference, buildSecureReference, buildSignedReference, contains, getCachedPreviousEntry, getPreviousEntry, getPreviousEntryReference, getRealPreviousEntry, hasPreviousEntry, setPreviousEntryReferences, setUser |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SnapShotLogEntry
public SnapShotLogEntry(StoredEmail[] emails,
LogEntry top)
- Constructor for SnapShot. For the given email, creates an
entry which can be used in a log chain. The next field is the
next LogNode in the chain.
- Parameters:
-
email
- the email to store-
top
- The top of the current log
getStoredEmails
public StoredEmail[] getStoredEmails()
- Returns all of the emails that the SnapShot contains.
-
- Returns:
- the valid emails at the point of the SnapShot
getTopEntry
public LogEntry getTopEntry()
- Returns the most recent entry in the log, at the time of the snapshot
-
- Returns:
- The most recent log entry reference
equals
public boolean equals(java.lang.Object o)
- Equals method
-
- Overrides:
-
equals
in class java.lang.Object
-
- Parameters:
-
o
- The object to compare to
- Returns:
- Whether or not we are equal
getInternalDate
public long getInternalDate()
-
- Specified by:
-
getInternalDate
in class EmailLogEntry
-
getMaxUID
public int getMaxUID()
-
- Specified by:
-
getMaxUID
in class EmailLogEntry
-
Copyright © 2001-2005 - Rice Pastry.