Class User
- java.lang.Object
-
- org.activecomponents.shortmessages.User
-
public class User extends java.lang.Object
The user struct.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
Test if equal.java.lang.String
getEmail()
Get the email.java.lang.String
getName()
Get the name.java.lang.String
getPassword()
Get the password.int
hashCode()
Get the hashcode.boolean
isOnline()
Get the online.void
setEmail(java.lang.String email)
Set the email.void
setName(java.lang.String name)
Set the name.void
setOnline(boolean online)
Set the online.void
setPassword(java.lang.String password)
Set the password.java.lang.String
toString()
Get the string representation.
-
-
-
Constructor Detail
-
User
public User()
Create a new user.- Parameters:
name
- The name.email
- The email.password
- The pass.
-
User
public User(java.lang.String name, java.lang.String email, java.lang.String password)
Create a new user.- Parameters:
name
- The name.email
- The email.password
- The pass.
-
-
Method Detail
-
getName
public java.lang.String getName()
Get the name.- Returns:
- The name
-
setName
public void setName(java.lang.String name)
Set the name.- Parameters:
name
- The name to set
-
getEmail
public java.lang.String getEmail()
Get the email.- Returns:
- The email
-
setEmail
public void setEmail(java.lang.String email)
Set the email.- Parameters:
email
- The email to set
-
getPassword
public java.lang.String getPassword()
Get the password.- Returns:
- The password
-
setPassword
public void setPassword(java.lang.String password)
Set the password.- Parameters:
password
- The password to set
-
isOnline
public boolean isOnline()
Get the online.- Returns:
- The online
-
setOnline
public void setOnline(boolean online)
Set the online.- Parameters:
online
- The online to set
-
hashCode
public int hashCode()
Get the hashcode.- Overrides:
hashCode
in classjava.lang.Object
- Returns:
- The hash code.
-
equals
public boolean equals(java.lang.Object obj)
Test if equal.- Overrides:
equals
in classjava.lang.Object
- Parameters:
obj
- The The other object.
-
toString
public java.lang.String toString()
Get the string representation.- Overrides:
toString
in classjava.lang.Object
-
-