public class MATEventItem extends Object
Modifier and Type | Field and Description |
---|---|
String |
attribute_sub1 |
String |
attribute_sub2 |
String |
attribute_sub3 |
String |
attribute_sub4 |
String |
attribute_sub5 |
String |
itemname |
int |
quantity |
double |
revenue |
double |
unitPrice |
Constructor and Description |
---|
MATEventItem(String itemname) |
Modifier and Type | Method and Description |
---|---|
String |
getAttrStringByName(String name) |
JSONObject |
toJSON() |
MATEventItem |
withAttribute1(String attribute) |
MATEventItem |
withAttribute2(String attribute) |
MATEventItem |
withAttribute3(String attribute) |
MATEventItem |
withAttribute4(String attribute) |
MATEventItem |
withAttribute5(String attribute) |
MATEventItem |
withQuantity(int quantity) |
MATEventItem |
withRevenue(double revenue) |
MATEventItem |
withUnitPrice(double unitPrice) |
public String itemname
public int quantity
public double unitPrice
public double revenue
public String attribute_sub1
public String attribute_sub2
public String attribute_sub3
public String attribute_sub4
public String attribute_sub5
public MATEventItem(String itemname)
public MATEventItem withQuantity(int quantity)
public MATEventItem withUnitPrice(double unitPrice)
public MATEventItem withRevenue(double revenue)
public MATEventItem withAttribute1(String attribute)
public MATEventItem withAttribute2(String attribute)
public MATEventItem withAttribute3(String attribute)
public MATEventItem withAttribute4(String attribute)
public MATEventItem withAttribute5(String attribute)
public JSONObject toJSON()