Class AddAttributeRequest
- java.lang.Object
-
- com.broadleafcommerce.cartoperation.web.endpoint.domain.CartModifyingRequest
-
- com.broadleafcommerce.cartoperation.web.endpoint.domain.AddAttributeRequest
-
- All Implemented Interfaces:
CartVersionedRequest,Serializable
public class AddAttributeRequest extends CartModifyingRequest implements Serializable
DTO for a request to add a Cart attribute.- Author:
- Nathan Moore (nathandmoore)
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AddAttributeRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanEqual(Object other)booleanequals(Object o)StringgetKey()The attribute's key.ObjectgetValue()The attribute's value.inthashCode()voidsetKey(String key)The attribute's key.voidsetValue(Object value)The attribute's value.StringtoString()-
Methods inherited from class com.broadleafcommerce.cartoperation.web.endpoint.domain.CartModifyingRequest
getCartVersion, getVersion, setCartVersion, setVersion
-
-
-
-
Method Detail
-
getKey
public String getKey()
The attribute's key.- Returns:
- The attribute's key.
-
getValue
public Object getValue()
The attribute's value.- Returns:
- The attribute's value.
-
setKey
public void setKey(String key)
The attribute's key.- Parameters:
key- The attribute's key.
-
setValue
public void setValue(Object value)
The attribute's value.- Parameters:
value- The attribute's value.
-
equals
public boolean equals(Object o)
- Overrides:
equalsin classCartModifyingRequest
-
canEqual
protected boolean canEqual(Object other)
- Overrides:
canEqualin classCartModifyingRequest
-
hashCode
public int hashCode()
- Overrides:
hashCodein classCartModifyingRequest
-
toString
public String toString()
- Overrides:
toStringin classCartModifyingRequest
-
-