org.mudcraft.bukkit.socials.user
Class SocialUser

java.lang.Object
  extended by org.mudcraft.bukkit.socials.user.SocialUser
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable

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

Social information for a Minecraft player.

Author:
Geoffrey Davis
See Also:
Serialized Form

Constructor Summary
SocialUser()
          Constructs a new SocialUser instance.
SocialUser(SocialUser other)
          Constructs a new SocialUser instance.
 
Method Summary
 java.lang.Object clone()
          Creates a copy of this object.
 boolean equals(java.lang.Object o)
          Gets whether this object is equal to another object.
 java.util.Date getBirthDate()
          Gets the user's birth date.
 java.lang.String getEmailAddress()
          Gets the user's email address.
 Gender getGender()
          Gets the user's gender.
 java.lang.Integer getId()
          Gets the record identity.
 java.lang.String getPlayerName()
          Gets the user's player name.
 Gender getRealGender()
          Gets the user's real gender.
 java.lang.String getRealName()
          Gets the user's real name.
 java.lang.Boolean getShowAge()
          Gets whether the user's age should be shown
 java.lang.Boolean getShowBirthday()
          Gets whether the user's birthday should be shown
 java.lang.Boolean getShowBirthYear()
          Gets whether the user's birth year should be shown
 java.lang.Boolean getShowEmailAddress()
          Gets whether the user's email address should be shown
 java.lang.Boolean getShowRealGender()
          Gets whether the user's real gender should be shown
 java.lang.Boolean getShowRealName()
          Gets whether the user's real name should be shown
 int hashCode()
          Calculates a hashcode for this object.
 void setBirthDate(java.util.Date birthDate)
          Sets the user's birth date.
 void setEmailAddress(java.lang.String emailAddress)
          Sets the user's email address.
 void setGender(Gender gender)
          Sets the user's gender.
 void setId(java.lang.Integer id)
          Sets the record identity.
 void setPlayerName(java.lang.String playerName)
          Sets the user's player name.
 void setRealGender(Gender realGender)
          Sets the user's real gender.
 void setRealName(java.lang.String realName)
          Sets the user's real name.
 void setShowAge(java.lang.Boolean showAge)
          Sets whether the user's age should be shown.
 void setShowBirthday(java.lang.Boolean showBirthday)
          Sets whether the user's birthday should be shown.
 void setShowBirthYear(java.lang.Boolean showBirthYear)
          Sets whether the user's birth year should be shown.
 void setShowEmailAddress(java.lang.Boolean showEmailAddress)
          Sets whether the user's email address should be shown.
 void setShowRealGender(java.lang.Boolean showRealGender)
          Sets whether the user's real gender should be shown.
 void setShowRealName(java.lang.Boolean showRealName)
          Sets whether the user's real name should be shown.
 java.lang.String toString()
          Returns a string representation of the object.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SocialUser

public SocialUser()
Constructs a new SocialUser instance.


SocialUser

public SocialUser(SocialUser other)
Constructs a new SocialUser instance.

Parameters:
other - the SocialUser whose state is to be copied
Method Detail

clone

public java.lang.Object clone()
Creates a copy of this object.

Overrides:
clone in class java.lang.Object
Returns:
a copy of this object
See Also:
Cloneable, Object.clone()

equals

public boolean equals(java.lang.Object o)
Gets whether this object is equal to another object.

Overrides:
equals in class java.lang.Object
Parameters:
o - the object to which this object is to be compared
Returns:
true if the specified object is equivalent
See Also:
Object.equals(Object)

getBirthDate

public java.util.Date getBirthDate()
Gets the user's birth date.

Returns:
the user's birth date
See Also:
setBirthDate(Date)

getEmailAddress

public java.lang.String getEmailAddress()
Gets the user's email address.

Returns:
the user's email address
See Also:
setEmailAddress(String)

getGender

public Gender getGender()
Gets the user's gender.

Returns:
the user's gender
See Also:
setGender(Gender)

getId

public java.lang.Integer getId()
Gets the record identity.

Returns:
the record identity
See Also:
setId(Integer)

getPlayerName

public java.lang.String getPlayerName()
Gets the user's player name.

Returns:
the user's player name
See Also:
setPlayerName(String)

getRealGender

public Gender getRealGender()
Gets the user's real gender.

Returns:
the user's real gender
See Also:
setRealGender(Gender)

getRealName

public java.lang.String getRealName()
Gets the user's real name.

Returns:
the user's real name
See Also:
setRealName(String)

getShowAge

public java.lang.Boolean getShowAge()
Gets whether the user's age should be shown

Returns:
true if the user's age should be shown
See Also:
setShowAge(Boolean)

getShowBirthday

public java.lang.Boolean getShowBirthday()
Gets whether the user's birthday should be shown

Returns:
true if the user's birthday should be shown
See Also:
setShowBirthday(Boolean)

getShowBirthYear

public java.lang.Boolean getShowBirthYear()
Gets whether the user's birth year should be shown

Returns:
true if the user's birth year should be shown
See Also:
setShowBirthYear(Boolean)

getShowEmailAddress

public java.lang.Boolean getShowEmailAddress()
Gets whether the user's email address should be shown

Returns:
true if the user's email address should be shown
See Also:
setShowEmailAddress(Boolean)

getShowRealGender

public java.lang.Boolean getShowRealGender()
Gets whether the user's real gender should be shown

Returns:
true if the user's real gender should be shown
See Also:
setShowRealGender(Boolean)

getShowRealName

public java.lang.Boolean getShowRealName()
Gets whether the user's real name should be shown

Returns:
true if the user's real name should be shown
See Also:
setShowAge(Boolean)

hashCode

public int hashCode()
Calculates a hashcode for this object.

Overrides:
hashCode in class java.lang.Object
Returns:
a hashcode for this object
See Also:
Object.hashCode()

setBirthDate

public void setBirthDate(java.util.Date birthDate)
Sets the user's birth date.

Parameters:
birthDate - the user's birth date
See Also:
getBirthDate()

setEmailAddress

public void setEmailAddress(java.lang.String emailAddress)
Sets the user's email address.

Parameters:
emailAddress - the user's email address
See Also:
getEmailAddress()

setGender

public void setGender(Gender gender)
Sets the user's gender.

Parameters:
gender - the user's gender
See Also:
getGender()

setId

public void setId(java.lang.Integer id)
Sets the record identity.

Parameters:
id - the record identity
See Also:
getId()

setPlayerName

public void setPlayerName(java.lang.String playerName)
Sets the user's player name.

Parameters:
playerName - the user's player name
See Also:
getPlayerName()

setRealGender

public void setRealGender(Gender realGender)
Sets the user's real gender.

Parameters:
realGender - the user's real gender
See Also:
getRealGender()

setRealName

public void setRealName(java.lang.String realName)
Sets the user's real name.

Parameters:
realName - the user's real name
See Also:
getRealName()

setShowAge

public void setShowAge(java.lang.Boolean showAge)
Sets whether the user's age should be shown.

Parameters:
showAge - indicates whether the user's age should be shown
See Also:
getShowAge()

setShowBirthday

public void setShowBirthday(java.lang.Boolean showBirthday)
Sets whether the user's birthday should be shown.

Parameters:
showBirthday - indicates whether the user's birthday should be shown
See Also:
getShowBirthday()

setShowBirthYear

public void setShowBirthYear(java.lang.Boolean showBirthYear)
Sets whether the user's birth year should be shown.

Parameters:
showBirthYear - indicates whether the user's birth year should be shown
See Also:
getShowBirthYear()

setShowEmailAddress

public void setShowEmailAddress(java.lang.Boolean showEmailAddress)
Sets whether the user's email address should be shown.

Parameters:
showEmailAddress - indicates whether the user's email address should be shown
See Also:
getShowEmailAddress()

setShowRealGender

public void setShowRealGender(java.lang.Boolean showRealGender)
Sets whether the user's real gender should be shown.

Parameters:
showRealGender - indicates whether the user's real gender should be shown
See Also:
getShowRealGender()

setShowRealName

public void setShowRealName(java.lang.Boolean showRealName)
Sets whether the user's real name should be shown.

Parameters:
showRealName - indicates whether the user's real name should be shown
See Also:
getShowRealName()

toString

public java.lang.String toString()
Returns a string representation of the object.

Overrides:
toString in class java.lang.Object
Returns:
a string representation of the object
See Also:
Object.toString()