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
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
fromAccount
(Account account) Builds anAccountRef
based on the providedAccount
getId()
The account's id.getName()
The account's name.int
hashCode()
void
The account's id.void
The account's name.toString()
-
Constructor Details
-
AccountRef
public AccountRef()
-
-
Method Details
-
fromAccount
Builds anAccountRef
based 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
-