Class User


  • public class User
    extends java.lang.Object
    The user struct.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.lang.String email
      The email.
      protected java.lang.String name
      The name.
      protected boolean online
      The online state.
      protected java.lang.String password
      The pass.
    • Constructor Summary

      Constructors 
      Constructor Description
      User()
      Create a new user.
      User​(java.lang.String name, java.lang.String email, java.lang.String password)
      Create a new user.
    • 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.
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Field Detail

      • name

        protected java.lang.String name
        The name.
      • email

        protected java.lang.String email
        The email.
      • password

        protected java.lang.String password
        The pass.
      • online

        protected boolean online
        The online state.
    • 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 class java.lang.Object
        Returns:
        The hash code.
      • equals

        public boolean equals​(java.lang.Object obj)
        Test if equal.
        Overrides:
        equals in class java.lang.Object
        Parameters:
        obj - The The other object.
      • toString

        public java.lang.String toString()
        Get the string representation.
        Overrides:
        toString in class java.lang.Object