public final class DeliveryItem
extends java.lang.Object
Delivery
.Modifier | Constructor and Description |
---|---|
protected |
DeliveryItem() |
|
DeliveryItem(CustomLineItem customLineItem)
Creates a DeliveryItem from a custom line item assuming that all items can be shipped.
|
|
DeliveryItem(LineItem lineItem)
Creates a DeliveryItem from a line item assuming that all items can be shipped.
|
|
DeliveryItem(java.lang.String id,
int quantity) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
java.lang.String |
getId()
the id of a line item or a custom line item in the order.
|
int |
getQuantity()
the number of items present in the delivery
|
int |
hashCode() |
java.lang.String |
toString() |
public DeliveryItem(java.lang.String id, int quantity)
protected DeliveryItem()
public DeliveryItem(LineItem lineItem)
public DeliveryItem(CustomLineItem customLineItem)
public java.lang.String getId()
public int getQuantity()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object