Class User
- java.lang.Object
-
- org.activecomponents.shortmessages.User
-
public class User extends java.lang.ObjectThe user struct.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)Test if equal.java.lang.StringgetEmail()Get the email.java.lang.StringgetName()Get the name.java.lang.StringgetPassword()Get the password.inthashCode()Get the hashcode.booleanisOnline()Get the online.voidsetEmail(java.lang.String email)Set the email.voidsetName(java.lang.String name)Set the name.voidsetOnline(boolean online)Set the online.voidsetPassword(java.lang.String password)Set the password.java.lang.StringtoString()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:
hashCodein classjava.lang.Object- Returns:
- The hash code.
-
equals
public boolean equals(java.lang.Object obj)
Test if equal.- Overrides:
equalsin classjava.lang.Object- Parameters:
obj- The The other object.
-
toString
public java.lang.String toString()
Get the string representation.- Overrides:
toStringin classjava.lang.Object
-
-