com.web_visage.ichat
Class IChatUserInfo

java.lang.Object
  extended by com.web_visage.ichat.IChatUserInfo

public class IChatUserInfo
extends java.lang.Object

User information.

Immutable, thread safe.

Author:
K.Baturytski

Constructor Summary
IChatUserInfo(IChatSender aSender, java.lang.String aNickName, EnumStatus aStatus)
          Constructor.
IChatUserInfo(IChatUserInfo another)
          Copy constructor.
 
Method Summary
 boolean equals(IChatUserInfo another)
           
 boolean equals(java.lang.Object obj)
           
 java.lang.String getNickName()
          Returns the user's nickname.
 IChatSender getSender()
          Returns the sender.
 EnumStatus getStatus()
          Returns the status.
 int hashCode()
           
 boolean isActual()
          Checks wheter the user is active.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IChatUserInfo

public IChatUserInfo(IChatSender aSender,
                     java.lang.String aNickName,
                     EnumStatus aStatus)
Constructor.

Parameters:
aSender - - sender object
aNickName - - user nickname
aStatus - - user status
anActualFlag - - actual flag

IChatUserInfo

public IChatUserInfo(IChatUserInfo another)
Copy constructor. Preserves original object creation time.

Parameters:
another -
Method Detail

getNickName

public final java.lang.String getNickName()
Returns the user's nickname.

Returns:

isActual

public final boolean isActual()
Checks wheter the user is active.

Returns:

getSender

public final IChatSender getSender()
Returns the sender.

Returns:

getStatus

public final EnumStatus getStatus()
Returns the status.

Returns:

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

equals

public boolean equals(IChatUserInfo another)
See Also:
Object.equals(java.lang.Object)