Class AccountRef

java.lang.Object
com.broadleafcommerce.customer.domain.AccountRef
All Implemented Interfaces:
Serializable

public class AccountRef extends Object implements Serializable
A reference to a account.
Author:
Chris Kittrell (ckittrell)
See Also:
  • Constructor Details

    • AccountRef

      public AccountRef()
  • Method Details

    • fromAccount

      public AccountRef fromAccount(Account account)
      Builds an AccountRef based on the provided Account
      Parameters:
      account - the Account used to build the AccountRef
      Returns:
      an AccountRef based on the provided Account
    • getId

      public String getId()
      The account's id.
      Returns:
      The account's id.
    • getName

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

      public void setId(String id)
      The account's id.
      Parameters:
      id - The account's id.
    • setName

      public void setName(String name)
      The account's name.
      Parameters:
      username - The account's name.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object