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 boolean
canEqual(Object other)
boolean
equals(Object o)
AccountRef
fromAccount(Account account)
Builds anAccountRef
based on the providedAccount
String
getId()
The account's id.String
getName()
The account's name.int
hashCode()
void
setId(String id)
The account's id.void
setName(String name)
The account's name.String
toString()
-
-
-
Method Detail
-
fromAccount
public AccountRef fromAccount(Account account)
Builds anAccountRef
based 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)
-
-