ePOST API

rice.email
Class StoredEmail

java.lang.Object
  extended by rice.email.StoredEmail
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.lang.Comparable

public class StoredEmail
extends java.lang.Object
implements java.io.Serializable, java.lang.Comparable, java.lang.Cloneable

Represents the notion of a stored email: it contains the metadata (int UID and date), the email and the Flags.

Version:
$Id: StoredEmail.java 3201 2006-04-14 13:55:54Z jstewart $
Author:
amislove
See Also:
Serialized Form

Field Summary
protected  Email _email
          The internal email
protected  Flags _flags
          The current flags of this email
protected  int _uid
          The forever-unique identifier for this stored email
protected  long internaldate
          The internaldate of this email, or when it was appended to the folder
 
Constructor Summary
StoredEmail(Email email, int uid, Flags flags, long internaldate)
          Constructs a stored email
StoredEmail(StoredEmail other, int uid)
           
 
Method Summary
 java.lang.Object clone()
           
 int compareTo(java.lang.Object o)
          DESCRIBE THE METHOD
 boolean equals(java.lang.Object o)
          DESCRIBE THE METHOD
 Email getEmail()
          Return the email
 Flags getFlags()
          Return the flags for the email
 long getInternalDate()
          Return the internaldate for the current email
 int getUID()
          Return the UID for the current email
 int hashCode()
          Returns the hashcode of this storedemail
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

_email

protected Email _email
The internal email


_uid

protected int _uid
The forever-unique identifier for this stored email


_flags

protected Flags _flags
The current flags of this email


internaldate

protected long internaldate
The internaldate of this email, or when it was appended to the folder

Constructor Detail

StoredEmail

public StoredEmail(Email email,
                   int uid,
                   Flags flags,
                   long internaldate)
Constructs a stored email

Parameters:
email - The email we are dealing with.
uid - The unique UID for the email.
flags - The flags on the email.

StoredEmail

public StoredEmail(StoredEmail other,
                   int uid)
Method Detail

getUID

public int getUID()
Return the UID for the current email

Returns:
The UID for the email

getInternalDate

public long getInternalDate()
Return the internaldate for the current email

Returns:
The internaldate for the email

getFlags

public Flags getFlags()
Return the flags for the email

Returns:
The Flags for the email

getEmail

public Email getEmail()
Return the email

Returns:
The Email.

hashCode

public int hashCode()
Returns the hashcode of this storedemail

Overrides:
hashCode in class java.lang.Object
Returns:
The hashcode

equals

public boolean equals(java.lang.Object o)
DESCRIBE THE METHOD

Overrides:
equals in class java.lang.Object
Parameters:
o - DESCRIBE THE PARAMETER
Returns:
DESCRIBE THE RETURN VALUE

compareTo

public int compareTo(java.lang.Object o)
DESCRIBE THE METHOD

Specified by:
compareTo in interface java.lang.Comparable
Parameters:
o - DESCRIBE THE PARAMETER
Returns:
DESCRIBE THE RETURN VALUE

clone

public java.lang.Object clone()
Overrides:
clone in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

ePOST API

Copyright © 2001-2005 - Rice Pastry.