Class AccountRef
java.lang.Object
com.broadleafcommerce.customer.domain.AccountRef
- All Implemented Interfaces:
Serializable
A reference to a account.
- Author:
- Chris Kittrell (ckittrell)
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanfromAccount(Account account) Builds anAccountRefbased on the providedAccountgetId()The account's id.getName()The account's name.inthashCode()voidThe account's id.voidThe account's name.toString()
-
Constructor Details
-
AccountRef
public AccountRef()
-
-
Method Details
-
fromAccount
Builds anAccountRefbased on the providedAccount- Parameters:
account- the Account used to build the AccountRef- Returns:
- an AccountRef based on the provided Account
-
getId
The account's id.- Returns:
- The account's id.
-
getName
The account's name.- Returns:
- The account's name.
-
setId
The account's id.- Parameters:
id- The account's id.
-
setName
The account's name.- Parameters:
username- The account's name.
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-