Class UserProfileD3


  • public class UserProfileD3
    extends java.lang.Object
    Simple user profile struct.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected int age
      The age.
      protected java.lang.String description
      The description.
      protected boolean gender
      The gender.
      protected java.lang.String name
      The name.
    • Constructor Summary

      Constructors 
      Constructor Description
      UserProfileD3()
      Create a new user profile.
      UserProfileD3​(java.lang.String name, int age, boolean gender, java.lang.String description)
      Create a new user profile.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getAge()
      Get the age.
      java.lang.String getDescription()
      Get the description.
      java.lang.String getName()
      Get the name.
      boolean isGender()
      Get the gender.
      void setAge​(int age)
      Set the age.
      void setDescription​(java.lang.String description)
      Set the description.
      void setGender​(boolean gender)
      Set the gender.
      void setName​(java.lang.String name)
      Set the name.
      java.lang.String toString()
      Get the string representation.
      • Methods inherited from class java.lang.Object

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

      • name

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

        protected int age
        The age.
      • gender

        protected boolean gender
        The gender.
      • description

        protected java.lang.String description
        The description.
    • Constructor Detail

      • UserProfileD3

        public UserProfileD3()
        Create a new user profile.
      • UserProfileD3

        public UserProfileD3​(java.lang.String name,
                             int age,
                             boolean gender,
                             java.lang.String description)
        Create a new user profile.
    • 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.
      • getAge

        public int getAge()
        Get the age.
        Returns:
        The age.
      • setAge

        public void setAge​(int age)
        Set the age.
        Parameters:
        age - The age to set.
      • isGender

        public boolean isGender()
        Get the gender.
        Returns:
        The gender.
      • setGender

        public void setGender​(boolean gender)
        Set the gender.
        Parameters:
        gender - The gender to set.
      • getDescription

        public java.lang.String getDescription()
        Get the description.
        Returns:
        The description.
      • setDescription

        public void setDescription​(java.lang.String description)
        Set the description.
        Parameters:
        description - The description to set.
      • toString

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