Class CustomerRef

    • Constructor Detail

      • CustomerRef

        public CustomerRef()
    • Method Detail

      • fromCustomer

        public CustomerRef fromCustomer​(Customer customer)
        Builds an CustomerRef based on the provided Customer
        Parameters:
        customer - the Customer used to build the CustomerRef
        Returns:
        an CustomerRef based on the provided Customer
      • getId

        public String getId()
        The customer's id.
        Returns:
        The customer's id.
      • getUsername

        public String getUsername()
        The customer's username.
        Returns:
        The customer's username.
      • getEmail

        public String getEmail()
        The customer's email address.
        Returns:
        The customer's email address.
      • getName

        public String getName()
        The customer's name
        Returns:
        The customer's name.
      • setId

        public void setId​(String id)
        The customer's id.
        Parameters:
        customerId - The customer's id.
      • setUsername

        public void setUsername​(String username)
        The customer's username.
        Parameters:
        username - The customer's username.
      • setEmail

        public void setEmail​(String email)
        The customer's email address.
        Parameters:
        email - The customer's email address.
      • setName

        public void setName​(String name)
        The customer's name
        Parameters:
        name - The customer's name
      • canEqual

        protected boolean canEqual​(Object other)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object