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:
 - Serialized Form
 
 
- 
- 
Constructor Summary
Constructors Constructor Description AccountRef() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanEqual(Object other)booleanequals(Object o)AccountReffromAccount(Account account)Builds anAccountRefbased on the providedAccountStringgetId()The account's id.StringgetName()The account's name.inthashCode()voidsetId(String id)The account's id.voidsetName(String name)The account's name.StringtoString() 
 - 
 
- 
- 
Method Detail
- 
fromAccount
public AccountRef fromAccount(Account account)
Builds anAccountRefbased on the providedAccount- 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.
 
- 
canEqual
protected boolean canEqual(Object other)
 
 - 
 
 -