jerklib
Class Profile

java.lang.Object
  extended by jerklib.Profile

public class Profile
extends Object

A class to hold information about Nick,RealName,AltNic etc.

Author:
mohadib
See Also:
ConnectionManager.ConnectionManager(Profile), ConnectionManager.requestConnection(String, int, Profile)

Constructor Summary
Profile(String nick)
          Create a new Profile.
Profile(String name, String nick)
          Create a new Profile.
Profile(String name, String nick, String secondNick, String thirdNick)
          Create a new Profile
 
Method Summary
 Profile clone()
           
 boolean equals(Object o)
           
 String getActualNick()
          Get the nick currently being used.
 String getFirstNick()
          Rreturn the first nick
 String getName()
          return the name
 String getSecondNick()
          Get the second nick
 String getThirdNick()
          Get the third nick
 int hashCode()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Profile

public Profile(String name,
               String nick,
               String secondNick,
               String thirdNick)
Create a new Profile

Parameters:
name - Username
nick - Nick
secondNick - Alt nick 1
thirdNick - Alt nick 2

Profile

public Profile(String name,
               String nick)
Create a new Profile. Alt. nicks will be generated by adding the number 1 or 2 to the end of the nick.

Parameters:
name -
nick -

Profile

public Profile(String nick)
Create a new Profile. Name is set to nick. Alt. nicks will be generated by adding the number 1 or 2 to the end of the nick.

Parameters:
nick -
Method Detail

getName

public String getName()
return the name

Returns:
name

getFirstNick

public String getFirstNick()
Rreturn the first nick

Returns:
first nick

getSecondNick

public String getSecondNick()
Get the second nick

Returns:
second nick

getThirdNick

public String getThirdNick()
Get the third nick

Returns:
third nick

getActualNick

public String getActualNick()
Get the nick currently being used.

Returns:
current actual nick

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

clone

public Profile clone()
Overrides:
clone in class Object