|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.analytics.tracking.android.Item.Builder
public static class Item.Builder
Builder for Item.
Constructor Summary | |
---|---|
Item.Builder(java.lang.String productSKU,
java.lang.String productName,
long itemPriceInMicros,
long itemQuantity)
|
Method Summary | |
---|---|
Item |
build()
Builds an Item with the parameters in this builder. |
Item.Builder |
setProductCategory(java.lang.String productCategory)
Sets the productCategory parameter for this builder, which in turn will set the productCategory parameter for the Item created by this builder. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Item.Builder(java.lang.String productSKU, java.lang.String productName, long itemPriceInMicros, long itemQuantity)
productSKU
- the productSKU which uniquely identifies the Item. The
productSKU cannot be null or the empty string.productName
- the productName for an item. The productName cannot be null or
the empty string.itemPriceInMicros
- the price of the Item (in micros: 1,000,000 micros/currency unit)itemQuantity
- the quantity purchased
java.lang.IllegalArgumentException
- if productSKU or productName are null or
emptyMethod Detail |
---|
public Item.Builder setProductCategory(java.lang.String productCategory)
productCategory
- the new value for productCategory
public Item build()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |