com.clra.member
Class MemberSnapshot
java.lang.Object
|
+--com.clra.member.MemberSnapshot
- All Implemented Interfaces:
- Comparable, Serializable
- public class MemberSnapshot
- extends Object
- implements Comparable, Serializable
Read-only information about a member.
- Version:
- $Revision: 1.2 $ $Date: 2002/02/18 18:03:23 $
- Author:
- Rick Hall
- See Also:
- Serialized Form
MemberSnapshot
public MemberSnapshot()
- Produces an invalid MemberSnapshot. Used only during deserialization
MemberSnapshot
public MemberSnapshot(Integer id,
String accountName,
String accountPassword,
String clraStatus,
MemberName memberName,
String email,
Map telephoneNumbers,
Address address,
Date clraYear,
Date birth)
getId
public Integer getId()
getAccountName
public String getAccountName()
getAccountPassword
public String getAccountPassword()
getClraStatus
public String getClraStatus()
getMemberName
public MemberName getMemberName()
hasEmail
public boolean hasEmail()
getEmail
public String getEmail()
getTelephoneNumbers
public Map getTelephoneNumbers()
getAddress
public Address getAddress()
getClraYear
public Date getClraYear()
hasKnownBirthDate
public boolean hasKnownBirthDate()
getBirthDate
public Date getBirthDate()
equals
public boolean equals(Object o)
- Two members are equal iff their id's are equal.
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Member objects are hashed by id's
- Overrides:
hashCode
in class Object
compareTo
public int compareTo(Object o)
throws ClassCastException
- Defines a natural ordering for members by lastname, firstname, middlename
and suffix.
Note: this class has a natural ordering that is inconsistent with equals.
Equality is defined by member id's, not by member names.
- Specified by:
compareTo
in interface Comparable
- Parameters:
o
- A member object.- Throws:
ClassCastException
- if o is not a member object.