public class Product
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
Product.Type |
Constructor and Description |
---|
Product(java.lang.String id,
Product.Type type) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
ProductDetails |
getDetails() |
java.lang.String |
getId() |
Product.Type |
getType() |
int |
hashCode() |
void |
setDetails(ProductDetails details) |
void |
setId(java.lang.String id) |
void |
setType(Product.Type type) |
java.lang.String |
toString() |
public Product(java.lang.String id, Product.Type type)
public java.lang.String getId()
public void setId(java.lang.String id)
public Product.Type getType()
public void setType(Product.Type type)
public ProductDetails getDetails()
public void setDetails(ProductDetails details)
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object